1 From stable-bounces@linux.kernel.org Thu May 10 23:11:14 2007
2 Message-Id: <200705110601.l4B6183j008187@shell0.pdx.osdl.net>
3 To: James.Bottomley@steeleye.com
4 From: akpm@linux-foundation.org
5 Date: Thu, 10 May 2007 23:01:08 -0700
6 Cc: akpm@linux-foundation.org, Eric.Moore@lsil.com, stable@kernel.org, linux-scsi@vger.kernel.org, doug.chapman@hp.com
7 Subject: fix for bugzilla 8426: massive slowdown on SCSI CD/DVD drive connected to mptspi driver
9 From: Doug Chapman <doug.chapman@hp.com>
11 Patch for: http://bugzilla.kernel.org/show_bug.cgi?id=8426
13 A recent code cleanup that moved code from mptscsih to mptspi inadvertently
14 change the order some code was called. This caused a massive slowdown (of
15 150x to 300x) on the CD/DVD drive on the high-end HP Integrity servers.
17 Signed-off-by: Doug Chapman <doug.chapman@hp.com>
18 Cc: "Moore, Eric Dean" <Eric.Moore@lsil.com>
19 Cc: James Bottomley <James.Bottomley@steeleye.com>
20 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
21 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
23 [chrisw: Why is this not upstream yet?]
25 drivers/message/fusion/mptspi.c | 8 +++++---
26 1 file changed, 5 insertions(+), 3 deletions(-)
28 --- linux-2.6.21.1.orig/drivers/message/fusion/mptspi.c
29 +++ linux-2.6.21.1/drivers/message/fusion/mptspi.c
30 @@ -726,13 +726,15 @@ static int mptspi_slave_configure(struct
31 struct _MPT_SCSI_HOST *hd =
32 (struct _MPT_SCSI_HOST *)sdev->host->hostdata;
33 VirtTarget *vtarget = scsi_target(sdev)->hostdata;
34 - int ret = mptscsih_slave_configure(sdev);
37 + mptspi_initTarget(hd, vtarget, sdev);
39 + ret = mptscsih_slave_configure(sdev);
44 - mptspi_initTarget(hd, vtarget, sdev);
46 ddvprintk((MYIOC_s_INFO_FMT "id=%d min_period=0x%02x"
47 " max_offset=0x%02x max_width=%d\n", hd->ioc->name,
48 sdev->id, spi_min_period(scsi_target(sdev)),