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>
{
struct scsi_cmnd *scmd = qc->scsicmd;
struct sg_mapping_iter miter;
- unsigned long flags;
unsigned int bytes = 0;
+ lockdep_assert_held(qc->ap->lock);
+
sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd),
SG_MITER_TO_SG | SG_MITER_ATOMIC);
- local_irq_save(flags);
while (sg_miter_next(&miter)) {
unsigned int offset = 0;
}
}
sg_miter_stop(&miter);
- local_irq_restore(flags);
ata_scsi_qc_complete(qc);
}