diff options
author | Martin Wilck <mwilck@suse.com> | 2018-02-14 11:05:57 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-02-15 18:34:24 -0500 |
commit | f66b85171a0ebd55a7efc3e82575ae187d62322c (patch) | |
tree | f8c52e502c887601bd53498fd1d2c3b49c34b6fd /drivers/scsi/ufs/ufs-sysfs.h | |
parent | c62f40bfb26356bb289267f3b802ec0434fdc118 (diff) |
scsi: scsi_debug: call resp_*() function after setting host_scribble
Error injection in scsi_debug (e.g. opts=16, SDEBUG_OPT_TRANSPORT_ERR)
currently doesn't work correctly because the test for sqcp in
resp_read_dt0() and similar resp_*() functions always fails. sqcp is
set from cmnd->host_scribble, which is set in schedule_resp(), which is
called from scsi_debug_queuecommand() after calling the resp_* function.
Defer calling resp_*() until after cmnd->host_scribble is set in
schedule_resp().
Fixes: c483739430f1 "scsi_debug: add multiple queue support"
Signed-off-by: Martin Wilck <mwilck@suse.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufs-sysfs.h')
0 files changed, 0 insertions, 0 deletions