diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-31 11:28:05 +0200 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-31 11:28:05 +0200 |
commit | 580b2102327ab8444af5bde4e70b50d268a1d558 (patch) | |
tree | 01389e898e09dbaddb06405b182116b9be0e6d59 /drivers/scsi/libata-eh.c | |
parent | [PATCH] libata-hp: implement hotplug (diff) | |
download | linux-580b2102327ab8444af5bde4e70b50d268a1d558.tar.xz linux-580b2102327ab8444af5bde4e70b50d268a1d558.zip |
[PATCH] libata-hp: implement SCSI part of hotplug
Implement SCSI part of hotplug.
This must be done in a separate context as SCSI makes use of EH during
probing. SCSI scan fails silently if EH is in progress. In such
cases, libata pauses briefly and retries until every device is
attached.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/libata-eh.c')
-rw-r--r-- | drivers/scsi/libata-eh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c index b53e2e7db498..733dfa532977 100644 --- a/drivers/scsi/libata-eh.c +++ b/drivers/scsi/libata-eh.c @@ -287,9 +287,13 @@ void ata_scsi_error(struct Scsi_Host *host) /* clean up */ spin_lock_irqsave(hs_lock, flags); + if (ap->flags & ATA_FLAG_SCSI_HOTPLUG) + queue_work(ata_aux_wq, &ap->hotplug_task); + if (ap->flags & ATA_FLAG_RECOVERED) ata_port_printk(ap, KERN_INFO, "EH complete\n"); - ap->flags &= ~ATA_FLAG_RECOVERED; + + ap->flags &= ~(ATA_FLAG_SCSI_HOTPLUG | ATA_FLAG_RECOVERED); /* tell wait_eh that we're done */ ap->flags &= ~ATA_FLAG_EH_IN_PROGRESS; |