Re: [PATCH 3/9] scsi: pmcraid: Take host_lock around scsi_report_bus_reset()

From: Praneeth Balasubramanian

Date: Sat Dec 05 2026 - 03:20:35 EST


On Sat, 05 Dec 2026 06:43:45 +0000, sashiko-bot@xxxxxxxxxx wrote:
>> Add spin_lock_irqsave()/spin_unlock_irqrestore() around
>> scsi_report_bus_reset() in both pmcraid_handle_error_log() and
>> pmcraid_error_handler(). The other callers of scsi_report_bus_reset()
>> in this driver already hold host_lock and are unchanged.
>
> [Severity: Low]
> Are there any other callers of scsi_report_bus_reset() in this driver?
>
> pmcraid_handle_error_log() and pmcraid_error_handler() appear to be the only
> two call sites in drivers/scsi/pmcraid.c; the only other mention is a comment
> in pmcraid_ioa_reset().

Right, these are the only two callers. The last sentence of that
paragraph is wrong and should go. The code change is not affected.
Both call sites run from the completion tasklet, which calls cmd_done
without host_lock for these commands, so taking the lock there does not
nest.

I will fix the changelog in v2. I will wait a few days for other
comments on the series first.