Re: [PATCH v2 0/1] scsi: core: Restart the queue when unblocking a device set running

From: Martin K. Petersen (Oracle)

Date: Tue Nov 17 2026 - 23:50:21 EST


On Fri, 30 Oct 2026 10:57:19 -0700, Brian Bunker wrote:

> A SCSI device can be left in SDEV_RUNNING with its request queue stopped
> for good. The task that put it there hangs holding the device lock, and
> anything else that takes the lock hangs behind it.
>
> This was seen with iSCSI when a session drops again just after
> recovering. The error handler offlines a device while its transport has
> it blocked, which leaves the queue stopped. iscsid then writes "running"
> to the device's state attribute and store_state_field() moves it to
> SDEV_RUNNING without restarting the queue. The rescan it starts sends an
> INQUIRY that can never be dispatched. When the transport later unblocks
> the device, scsi_internal_device_unblock_nowait() rejects it with
> -EINVAL because it is already running, so nothing restarts the queue.
>
> [...]

Applied to 7.5/scsi-queue, thanks!

[1/1] scsi: core: Restart the queue when unblocking a device set running
https://git.kernel.org/mkp/scsi/c/dc7ba60d45b1

--
Martin K. Petersen