diff options
author | Niklas Cassel <niklas.cassel@wdc.com> | 2022-10-07 15:23:39 +0200 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-19 13:46:00 +0900 |
commit | 7834589e81bcf5fe4e7ab60430670c9245183de0 (patch) | |
tree | d6fa8b48432676478de7295a060741c0cde6deed /drivers/scsi | |
parent | 4cb7c6f1ef9642cd2c8580b495fde47ffbaddef7 (diff) | |
download | linux-stable-7834589e81bcf5fe4e7ab60430670c9245183de0.tar.gz linux-stable-7834589e81bcf5fe4e7ab60430670c9245183de0.tar.bz2 linux-stable-7834589e81bcf5fe4e7ab60430670c9245183de0.zip |
scsi: libsas: make use of ata_port_is_frozen() helper
Clean up the code by making use of the newly introduced
ata_port_is_frozen() helper function.
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index d35c9296f738..5692577f82e3 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c @@ -101,7 +101,7 @@ static void sas_ata_task_done(struct sas_task *task) spin_lock_irqsave(ap->lock, flags); /* check if we lost the race with libata/sas_ata_post_internal() */ - if (unlikely(ap->pflags & ATA_PFLAG_FROZEN)) { + if (unlikely(ata_port_is_frozen(ap))) { spin_unlock_irqrestore(ap->lock, flags); if (qc->scsicmd) goto qc_already_gone; |