[lkml]   [2007]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch 42/69] fix for bugzilla 8426: massive slowdown on SCSI CD/DVD drive connected to mptspi driver
-stable review patch.  If anyone has any objections, please let us know.

From: Doug Chapman <>

Patch for:

A recent code cleanup that moved code from mptscsih to mptspi inadvertently
change the order some code was called. This caused a massive slowdown (of
150x to 300x) on the CD/DVD drive on the high-end HP Integrity servers.

Signed-off-by: Doug Chapman <>
Cc: <>
Cc: James Bottomley <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Chris Wright <>
[chrisw: Why is this not upstream yet?]

drivers/message/fusion/mptspi.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

--- linux-
+++ linux-
@@ -726,13 +726,15 @@ static int mptspi_slave_configure(struct
struct _MPT_SCSI_HOST *hd =
(struct _MPT_SCSI_HOST *)sdev->host->hostdata;
VirtTarget *vtarget = scsi_target(sdev)->hostdata;
- int ret = mptscsih_slave_configure(sdev);
+ int ret;
+ mptspi_initTarget(hd, vtarget, sdev);
+ ret = mptscsih_slave_configure(sdev);

if (ret)
return ret;

- mptspi_initTarget(hd, vtarget, sdev);
ddvprintk((MYIOC_s_INFO_FMT "id=%d min_period=0x%02x"
" max_offset=0x%02x max_width=%d\n", hd->ioc->name,
sdev->id, spi_min_period(scsi_target(sdev)),
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-05-21 21:25    [W:0.328 / U:0.232 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site