Commit 34434a3c authored by Bart Van Assche's avatar Bart Van Assche Committed by Treehugger Robot
Browse files

UPSTREAM: scsi: core: Fix handling of SCMD_FAIL_IF_RECOVERING



There is code in the SCSI core that sets the SCMD_FAIL_IF_RECOVERING
flag but there is no code that clears this flag. Instead of only clearing
SCMD_INITIALIZED in scsi_end_request(), clear all flags. It is never
necessary to preserve any command flags inside scsi_end_request().

Bug: 254441685
Cc: stable@vger.kernel.org
Fixes: 310bcaef ("scsi: core: Support failing requests while recovering")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240325224417.1477135-1-bvanassche@acm.org


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit ca91259b)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ia52eaf5b308447897da598f70c8731da8e527e15
parent a47d2019
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment