[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>
This commit is contained in:
@@ -5370,6 +5370,7 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
|
||||
ap->msg_enable = ATA_MSG_DRV;
|
||||
|
||||
INIT_WORK(&ap->port_task, NULL, NULL);
|
||||
INIT_WORK(&ap->hotplug_task, ata_scsi_hotplug, ap);
|
||||
INIT_LIST_HEAD(&ap->eh_done_q);
|
||||
init_waitqueue_head(&ap->eh_wait_q);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user