]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/libsas/sas_init.c
[SCSI] libsas: enforce eh strategy handlers only in eh context
[~andy/linux] / drivers / scsi / libsas / sas_init.c
index 6909fefa32c51106d3288b46c3123da9fa1a4d0b..1bbab3d94a2027144901689731017b13c1b9708a 100644 (file)
@@ -116,7 +116,9 @@ int sas_register_ha(struct sas_ha_struct *sas_ha)
        set_bit(SAS_HA_REGISTERED, &sas_ha->state);
        spin_lock_init(&sas_ha->lock);
        mutex_init(&sas_ha->drain_mutex);
+       init_waitqueue_head(&sas_ha->eh_wait_q);
        INIT_LIST_HEAD(&sas_ha->defer_q);
+       INIT_LIST_HEAD(&sas_ha->eh_dev_q);
 
        error = sas_register_phys(sas_ha);
        if (error) {