diff options
author | John Garry <[email protected]> | 2023-03-27 07:43:00 +0000 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-04-02 22:09:21 -0400 |
commit | 6500d2045d5247cfb2ac31cc1691d7191096389b (patch) | |
tree | 535e758a4062f692fb94dadbd194d94a4d4ff6be /drivers/usb/cdns3/cdns3-debug.h | |
parent | 548ebb335f743fa2647fe61bb1ad29d2c706afda (diff) |
scsi: scsi_debug: Fix check for sdev queue full
There is a report that the blktests scsi/004 test for "TASK SET FULL" (TSF)
now fails.
The condition upon we should issue this TSF is when the sdev queue is
full. The check for a full queue has an off-by-1 error. Previously we would
increment the number of requests in the queue after testing if the queue
would be full, i.e. test if one less than full. Since we now use
scsi_device_busy() to count the number of requests in the queue, this would
already account for the current request, so fix the test for queue full
accordingly.
Fixes: 151f0ec9ddb5 ("scsi: scsi_debug: Drop sdebug_dev_info.num_in_q")
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/oe-lkp/[email protected]
Signed-off-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Douglas Gilbert <[email protected]>
Tested-by: Yi Zhang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions