* [PATCH] use scsi_report_bus_reset() in scsi_erroc.c
@ 2003-04-27 11:42 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2003-04-27 11:42 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi
Currently scsi_error.c has two opencoded copies for
scsi_report_bus_reset. Get rid of them.
--- 1.48/drivers/scsi/scsi_error.c Mon Apr 21 10:17:33 2003
+++ edited/drivers/scsi/scsi_error.c Sun Apr 27 10:46:14 2003
@@ -916,7 +913,6 @@
**/
static int scsi_try_bus_reset(struct scsi_cmnd *scmd)
{
- struct scsi_device *sdev;
unsigned long flags;
int rtn;
@@ -934,16 +930,9 @@
if (rtn == SUCCESS) {
scsi_sleep(BUS_RESET_SETTLE_TIME);
- /*
- * Mark all affected devices to expect a unit attention.
- */
- list_for_each_entry(sdev, &scmd->device->host->my_devices,
- siblings)
- if (scmd->device->channel == sdev->channel) {
- sdev->was_reset = 1;
- sdev->expecting_cc_ua = 1;
- }
+ scsi_report_bus_reset(scmd->device->host, scmd->device->channel);
}
+
return rtn;
}
@@ -953,7 +942,6 @@
**/
static int scsi_try_host_reset(struct scsi_cmnd *scmd)
{
- struct scsi_device *sdev;
unsigned long flags;
int rtn;
@@ -971,16 +959,9 @@
if (rtn == SUCCESS) {
scsi_sleep(HOST_RESET_SETTLE_TIME);
- /*
- * Mark all affected devices to expect a unit attention.
- */
- list_for_each_entry(sdev, &scmd->device->host->my_devices,
- siblings)
- if (scmd->device->channel == sdev->channel) {
- sdev->was_reset = 1;
- sdev->expecting_cc_ua = 1;
- }
+ scsi_report_bus_reset(scmd->device->host, scmd->device->channel);
}
+
return rtn;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-27 11:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-27 11:42 [PATCH] use scsi_report_bus_reset() in scsi_erroc.c Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox