diff options
author | Can Guo <[email protected]> | 2020-12-28 04:04:36 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-01-05 23:08:11 -0500 |
commit | 35fc4cd34426c242ab015ef280853b7bff101f48 (patch) | |
tree | 996ec464a4720ef8a970e032c994db1c19e2109d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6948a96a0d69b7e8203758f44849ce4ab06ff788 (diff) |
scsi: ufs: Correct the LUN used in eh_device_reset_handler() callback
Users can initiate resets to specific SCSI device/target/host through
IOCTL. When this happens, the SCSI cmd passed to eh_device/target/host
_reset_handler() callbacks is initialized with a request whose tag is -1.
In this case it is not right for eh_device_reset_handler() callback to
count on the LUN get from hba->lrb[-1]. Fix it by getting LUN from the SCSI
device associated with the SCSI cmd.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Avri Altman <[email protected]>
Reviewed-by: Stanley Chu <[email protected]>
Signed-off-by: Can Guo <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions