diff options
| author | Douglas Gilbert <[email protected]> | 2022-01-08 20:28:47 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-01-25 00:25:05 -0500 |
| commit | 7d5a129b86b3ba42fb0482bc349beb4024e1b24a (patch) | |
| tree | d4cd375e0f99ac5f5351d9739cc9b7557c19c0f8 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | d9d23a5a34bdd2ac6ba477e58794c577a1e93dd5 (diff) | |
scsi: scsi_debug: Use TASK SET FULL more
When the internal in_use bit array in this driver is full returning
SCSI_MLQUEUE_HOST_BUSY leads to the mid-level reissuing the request which
is unhelpful. Previously TASK SET FULL status was only returned if ALL_TSF
[0x400] is placed in the opts variable (at load time or via sysfs). Now
ignore that setting and always return TASK SET FULL when in_use array is
full. Also set DID_ABORT together with TASK SET FULL so the mid-level gives
up immediately.
Aside: the situations addressed by this patch lead to lockups and
timeouts. They have only been detected when blk_poll() is used. That
mechanism is relatively new in the SCSI subsystem suggesting the mid-level
may need more work in that area.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Douglas Gilbert <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions