summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_ata.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2012-01-07 09:52:39 +0100
committerJames Bottomley <JBottomley@Parallels.com>2012-02-19 20:51:23 +0100
commite139942d77a6e3ac83bc322e826668054a8601d6 (patch)
treeef1741122d936f6fa9986a53f17e6f6108283649 /drivers/scsi/libsas/sas_ata.c
parent[SCSI] libsas: remove ata_port.lock management duties from lldds (diff)
downloadlinux-e139942d77a6e3ac83bc322e826668054a8601d6.tar.xz
linux-e139942d77a6e3ac83bc322e826668054a8601d6.zip
[SCSI] libsas: convert dev->gone to flags
In preparation for adding tracking of another device state "destroy". Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/libsas/sas_ata.c')
-rw-r--r--drivers/scsi/libsas/sas_ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
index 81ce39d166d1..2fc5a3961ca6 100644
--- a/drivers/scsi/libsas/sas_ata.c
+++ b/drivers/scsi/libsas/sas_ata.c
@@ -184,7 +184,7 @@ static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
spin_unlock(ap->lock);
/* If the device fell off, no sense in issuing commands */
- if (dev->gone)
+ if (test_bit(SAS_DEV_GONE, &dev->state))
goto out;
task = sas_alloc_task(GFP_ATOMIC);