aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2025-01-07 01:02:20 +0000
committerMartin K. Petersen <[email protected]>2025-01-10 01:56:19 +0000
commit8604f633f59375687fa115d6f691de95a42520e3 (patch)
tree344bae72877afabfdc9c5b2de036214d07d21d49 /net/unix/af_unix.c
parentscsi: ufs: qcom: Power down the controller/device during system suspend for S... (diff)
downloadkernel-8604f633f59375687fa115d6f691de95a42520e3.tar.gz
kernel-8604f633f59375687fa115d6f691de95a42520e3.zip
scsi: core: Fix command pass through retry regression
scsi_check_passthrough() is always called, but it doesn't check for if a command completed successfully. As a result, if a command was successful and the caller used SCMD_FAILURE_RESULT_ANY to indicate what failures it wanted to retry, we will end up retrying the command. This will cause delays during device discovery because of the command being sent multiple times. For some USB devices it can also cause the wrong device size to be used. This patch adds a check for if the command was successful. If it is we return immediately instead of trying to match a failure. Fixes: 994724e6b3f0 ("scsi: core: Allow passthrough to request midlayer retries") Reported-by: Kris Karas <[email protected]> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219652 Signed-off-by: Mike Christie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions