diff options
Diffstat (limited to 'drivers/scsi/libsas/sas_scsi_host.c')
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index dbc2a912114f..ba5c91b81312 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c | |||
@@ -216,8 +216,12 @@ int sas_queuecommand(struct scsi_cmnd *cmd, | |||
216 | struct sas_task *task; | 216 | struct sas_task *task; |
217 | 217 | ||
218 | if (dev_is_sata(dev)) { | 218 | if (dev_is_sata(dev)) { |
219 | unsigned long flags; | ||
220 | |||
221 | spin_lock_irqsave(dev->sata_dev.ap->lock, flags); | ||
219 | res = ata_sas_queuecmd(cmd, scsi_done, | 222 | res = ata_sas_queuecmd(cmd, scsi_done, |
220 | dev->sata_dev.ap); | 223 | dev->sata_dev.ap); |
224 | spin_unlock_irqrestore(dev->sata_dev.ap->lock, flags); | ||
221 | goto out; | 225 | goto out; |
222 | } | 226 | } |
223 | 227 | ||