Re: [PATCH 6/9] scsi: csiostor: hold hw lock when issuing port stats mailbox command
From: Praneeth Balasubramanian
Date: Sat Dec 05 2026 - 03:20:43 EST
On Sat, 05 Dec 2026 06:47:04 +0000, sashiko-bot@xxxxxxxxxx wrote:
> [Severity: High]
> Can holding hw->lock with interrupts disabled across csio_mb_issue() stall
> adapter I/O and trigger hardlockups?
>
> With cbfn NULL and CSIO_MB_DEFAULT_TMO (10 seconds), csio_mb_issue()
> unconditionally runs mdelay(5) before its first status read and polls up
> to 10 seconds.
Right. A synchronous csio_mb_issue() polls with mdelay() for up to the
timeout, so it must not run under hw->lock with interrupts off. And as
the other comment says, some reset and configuration paths issue
mailbox commands without hw->lock, so the changelog claim was wrong as
well.
Please drop this patch. Fixing it properly needs the stats request to
wait for the mailbox outside the lock, as suggested. I will drop it
from v2 of the series.