aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-scsi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 47ea111d5ace..6b2553dae489 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -3182,10 +3182,12 @@ static int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel,
3182 rc = -EINVAL; 3182 rc = -EINVAL;
3183 } 3183 }
3184 3184
3185 if (rc == 0) 3185 if (rc == 0) {
3186 ata_port_schedule_eh(ap); 3186 ata_port_schedule_eh(ap);
3187 3187 spin_unlock_irqrestore(ap->lock, flags);
3188 spin_unlock_irqrestore(ap->lock, flags); 3188 ata_port_wait_eh(ap);
3189 } else
3190 spin_unlock_irqrestore(ap->lock, flags);
3189 3191
3190 return rc; 3192 return rc;
3191} 3193}