From: Praneeth Balasubramanian <praneethb2002@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <mkp@kernel.org>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 6/9] scsi: csiostor: hold hw lock when issuing port stats mailbox command
Date: Sat, 5 Dec 2026 00:20:33 -0800 [thread overview]
Message-ID: <20261205082033.2596708-1-praneethb2002@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-251143@kernel.org>
On Sat, 05 Dec 2026 06:47:04 +0000, sashiko-bot@kernel.org 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.
next prev parent reply other threads:[~2026-12-05 8:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 6:32 [PATCH 0/9] scsi: fix missing locking and dump length checks in several drivers Praneeth Balasubramanian
2026-12-05 6:32 ` [PATCH 1/9] scsi: bnx2i: Hold the session back_lock around iscsi_itt_to_task() Praneeth Balasubramanian
2026-12-05 6:32 ` [PATCH 2/9] scsi: mpt3sas: do not keep an enclosure pointer across a host reset Praneeth Balasubramanian
2026-12-05 6:46 ` sashiko-bot
2026-12-05 6:32 ` [PATCH 3/9] scsi: pmcraid: Take host_lock around scsi_report_bus_reset() Praneeth Balasubramanian
2026-12-05 6:43 ` sashiko-bot
2026-12-05 8:20 ` Praneeth Balasubramanian
2026-12-05 6:32 ` [PATCH 4/9] scsi: ipr: Skip dump entries whose length is not a 4 byte multiple Praneeth Balasubramanian
2026-12-05 6:32 ` [PATCH 5/9] scsi: arm: Fix eh_abort race against the interrupt handler Praneeth Balasubramanian
2026-12-05 6:50 ` sashiko-bot
2026-12-05 8:20 ` Praneeth Balasubramanian
2026-12-05 6:32 ` [PATCH 6/9] scsi: csiostor: hold hw lock when issuing port stats mailbox command Praneeth Balasubramanian
2026-12-05 6:47 ` sashiko-bot
2026-12-05 8:20 ` Praneeth Balasubramanian [this message]
2026-12-05 6:32 ` [PATCH 7/9] scsi: fnic: Hold fnic_lock for the oxid calls in the FIP timer work Praneeth Balasubramanian
2026-12-05 6:32 ` [PATCH 8/9] scsi: qla2xxx: Hold qp_lock when completing command in abort timeout Praneeth Balasubramanian
2026-12-05 6:58 ` sashiko-bot
2026-12-05 6:32 ` [PATCH 9/9] scsi: target: core: Fix PRgeneration race in REGISTER AND MOVE Praneeth Balasubramanian
2026-12-05 6:56 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261205082033.2596708-1-praneethb2002@gmail.com \
--to=praneethb2002@gmail.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mkp@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox