]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: libata-scsi: Remove superfluous local_irq_save()
authorNiklas Cassel <cassel@kernel.org>
Thu, 4 Dec 2025 13:18:04 +0000 (14:18 +0100)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 15 Dec 2025 07:32:04 +0000 (16:32 +0900)
commite8fe098170142416f11a0cae201254cd779f7fe9
treee36eefb16d107be7c01741d23e973532bd96363c
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
ata: libata-scsi: Remove superfluous local_irq_save()

Commit 28a3fc2295a7 ("libata: implement ZBC IN translation") added
ata_scsi_report_zones_complete(). Since the beginning, this function
has disabled IRQs on the local CPU using local_irq_save().

qc->complete_fn is always called with ap->lock held, and the ap->lock
is always taken using spin_lock_irq*().

Thus, this local_irq_save() is superfluous and can be removed.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/libata-scsi.c