mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
312d3e5611
commit
e139942d77
5 changed files with 11 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue