diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-31 05:27:27 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-31 05:27:27 -0400 |
commit | c6cf9e99d1de5ca6a08fb639bb73031ffe50d802 (patch) | |
tree | 555a47d45b5b80ef14ff53ccb4c6d1439460e251 /drivers/scsi/libata-core.c | |
parent | 7395acb2c840fd4d0cacc91d6fb71440057141ab (diff) |
[PATCH] libata: implement ata_eh_wait()
Implement ata_eh_wait(). On return from this function, it's
guaranteed that the EH which was pending or in progress when the
function was called is complete - including the tailing part of SCSI
EH. This will be used by hotplug and others to synchronize with EH.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 11df827e166f..66df895c9617 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -5189,6 +5189,7 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host, | |||
5189 | 5189 | ||
5190 | INIT_WORK(&ap->port_task, NULL, NULL); | 5190 | INIT_WORK(&ap->port_task, NULL, NULL); |
5191 | INIT_LIST_HEAD(&ap->eh_done_q); | 5191 | INIT_LIST_HEAD(&ap->eh_done_q); |
5192 | init_waitqueue_head(&ap->eh_wait_q); | ||
5192 | 5193 | ||
5193 | /* set cable type */ | 5194 | /* set cable type */ |
5194 | ap->cbl = ATA_CBL_NONE; | 5195 | ap->cbl = ATA_CBL_NONE; |