Thread (3 messages) 3 messages, 3 authors, 2021-10-21

Re: [PATCH V2] scsi: ufs: core: Fix synchronization between scsi_unjam_host() and ufshcd_queuecommand()

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-10-21 03:44:00

On Fri, 8 Oct 2021 11:40:48 +0300, Adrian Hunter wrote:
The SCSI error handler calls scsi_unjam_host() which can call the queue
function ufshcd_queuecommand() indirectly. The error handler changes the
state to UFSHCD_STATE_RESET while running, but error interrupts that
happen while the error handler is running could change the state to
UFSHCD_STATE_EH_SCHEDULED_NON_FATAL which would allow requests to go
through ufshcd_queuecommand() even though the error handler is running.
Block that hole by checking whether the error handler is in progress.

[...]
Applied to 5.16/scsi-queue, thanks!

[1/1] scsi: ufs: core: Fix synchronization between scsi_unjam_host() and ufshcd_queuecommand()
      https://git.kernel.org/mkp/scsi/c/d489f18ad1fc

-- 
Martin K. Petersen	Oracle Linux Engineering
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help