diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-18 13:38:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-18 13:38:09 -0400 |
commit | 4cc21505a09354ade787de368bd697a1bba3b213 (patch) | |
tree | 98a6a6348803ed92c8a2a2f15dd792f2bc886ef8 | |
parent | caec4e8dc85e0644ec24aeb36285e1ba02da58cc (diff) | |
parent | 204abf28679cd55a8e254b18965583bb1c8bc739 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
[SCSI] ESP: Don't forget to clear ESP_FLAG_RESETTING.
[SCSI] fusion: fix for BZ 8426 - massive slowdown on SCSI CD/DVD drive
-rw-r--r-- | drivers/message/fusion/mptspi.c | 8 | ||||
-rw-r--r-- | drivers/scsi/esp_scsi.c | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c index d75f7ffbb02e..37bf65348372 100644 --- a/drivers/message/fusion/mptspi.c +++ b/drivers/message/fusion/mptspi.c | |||
@@ -727,13 +727,15 @@ static int mptspi_slave_configure(struct scsi_device *sdev) | |||
727 | struct _MPT_SCSI_HOST *hd = | 727 | struct _MPT_SCSI_HOST *hd = |
728 | (struct _MPT_SCSI_HOST *)sdev->host->hostdata; | 728 | (struct _MPT_SCSI_HOST *)sdev->host->hostdata; |
729 | VirtTarget *vtarget = scsi_target(sdev)->hostdata; | 729 | VirtTarget *vtarget = scsi_target(sdev)->hostdata; |
730 | int ret = mptscsih_slave_configure(sdev); | 730 | int ret; |
731 | |||
732 | mptspi_initTarget(hd, vtarget, sdev); | ||
733 | |||
734 | ret = mptscsih_slave_configure(sdev); | ||
731 | 735 | ||
732 | if (ret) | 736 | if (ret) |
733 | return ret; | 737 | return ret; |
734 | 738 | ||
735 | mptspi_initTarget(hd, vtarget, sdev); | ||
736 | |||
737 | ddvprintk((MYIOC_s_INFO_FMT "id=%d min_period=0x%02x" | 739 | ddvprintk((MYIOC_s_INFO_FMT "id=%d min_period=0x%02x" |
738 | " max_offset=0x%02x max_width=%d\n", hd->ioc->name, | 740 | " max_offset=0x%02x max_width=%d\n", hd->ioc->name, |
739 | sdev->id, spi_min_period(scsi_target(sdev)), | 741 | sdev->id, spi_min_period(scsi_target(sdev)), |
diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index ec71061aef61..71caf2ded6ba 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c | |||
@@ -2033,6 +2033,7 @@ static void esp_reset_cleanup(struct esp *esp) | |||
2033 | starget_for_each_device(tp->starget, NULL, | 2033 | starget_for_each_device(tp->starget, NULL, |
2034 | esp_clear_hold); | 2034 | esp_clear_hold); |
2035 | } | 2035 | } |
2036 | esp->flags &= ~ESP_FLAG_RESETTING; | ||
2036 | } | 2037 | } |
2037 | 2038 | ||
2038 | /* Runs under host->lock */ | 2039 | /* Runs under host->lock */ |