public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVD drive connected to mptspi driver
@ 2007-05-07 19:59 Doug Chapman
  2007-05-10 13:30 ` Doug Chapman
  2007-05-22 20:25 ` Doug Chapman
  0 siblings, 2 replies; 9+ messages in thread
From: Doug Chapman @ 2007-05-07 19:59 UTC (permalink / raw)
  To: eric.moore, doug.chapman, linux-scsi

Patch for: http://bugzilla.kernel.org/show_bug.cgi?id=8426

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 <doug.chapman@hp.com>




diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c
index 85f21b5..2eb5741 100644
--- a/drivers/message/fusion/mptspi.c
+++ b/drivers/message/fusion/mptspi.c
@@ -726,13 +726,15 @@ static int mptspi_slave_configure(struct scsi_device *sdev)
 	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)),



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-05-31 16:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 19:59 [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVD drive connected to mptspi driver Doug Chapman
2007-05-10 13:30 ` Doug Chapman
2007-05-22 20:25 ` Doug Chapman
2007-05-22 21:27   ` James Bottomley
2007-05-29 21:40     ` [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVDdrive " Moore, Eric
2007-05-29 22:02       ` James Bottomley
2007-05-29 22:46         ` [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVDdriveconnected " Moore, Eric
2007-05-31 15:40           ` Moore, Eric
2007-05-31 16:14             ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox