]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: remove irq save in sas_ata_qc_issue()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 14 Jun 2018 16:18:09 +0000 (18:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Jun 2018 02:02:25 +0000 (22:02 -0400)
commit2f8edb8d6fa2eabf4d9a3854875c233f28166065
tree6d857a47a23b3799240eef1f51bc8419922f02dc
parente67455ee63a91e46570f23b8bf54ec6fff8de07a
scsi: libsas: remove irq save in sas_ata_qc_issue()

Since commit 41626e7c36d1 ("[SCSI] libsas: remove ata_port.lock management
duties from lldds") the sas_ata_qc_issue() function unlocks the
ata_port.lock and disables interrupts before doing so.  That lock is always
taken with disabled interrupts so at this point, the interrupts are already
disabled. There is no need to disable the interrupts before the unlock
operation because they are already disabled.  Restoring the interrupt state
later does not change anything because they were disabled and remain
disabled. Therefore remove the operations which do not change the
behaviour.

Fixes: 41626e7c36d1 ("[SCSI] libsas: remove ata_port.lock management duties from lldds")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_ata.c