aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorWenchao Hao <[email protected]>2023-05-15 07:01:56 +0000
committerMartin K. Petersen <[email protected]>2023-05-17 01:56:35 +0000
commit09e797c8641f6ad435c33ae24c223351197ea29a (patch)
treee895489740c275f81e6959ea756027b3ac7bab24 /lib/string_helpers.c
parentscsi: Revert "scsi: core: Do not increase scsi_device's iorequest_cnt if disp... (diff)
downloadkernel-09e797c8641f6ad435c33ae24c223351197ea29a.tar.gz
kernel-09e797c8641f6ad435c33ae24c223351197ea29a.zip
scsi: core: Decrease scsi_device's iorequest_cnt if dispatch failed
If scsi_dispatch_cmd() failed, the SCSI command was not sent to the target, scsi_queue_rq() would return BLK_STS_RESOURCE and the related request would be requeued. The timeout of this request would not fire, no one would increase iodone_cnt. The above flow would result the iodone_cnt smaller than iorequest_cnt. So decrease the iorequest_cnt if dispatch failed to workaround the issue. Signed-off-by: Wenchao Hao <[email protected]> Reported-by: Ming Lei <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ming Lei <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions