diff options
| author | Bart Van Assche <[email protected]> | 2019-08-08 20:02:06 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-08-12 21:34:08 -0400 |
| commit | 85cffefa09e448906a6f0bc20f422d75a18675bd (patch) | |
| tree | 514d00f532ba5e329c1c73307a59b2317deb283e /tools/perf/scripts/python | |
| parent | bdb61b9b944d1e5b7cee5a9fe21014363c55b811 (diff) | |
scsi: qla2xxx: Fix a race condition between aborting and completing a SCSI command
Instead of allocating a struct srb dynamically from inside .queuecommand(),
set qla2xxx_driver_template.cmd_size such that struct scsi_cmnd and struct
srb are contiguous. Do not call QLA_QPAIR_MARK_BUSY() /
QLA_QPAIR_MARK_NOT_BUSY() for SRBs associated with SCSI commands. That is
safe because scsi_remove_host() is called before queue pairs are deleted
and scsi_remove_host() waits for all outstanding SCSI commands to finish.
Cc: Himanshu Madhani <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Tested-by: Himanshu Madhani <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions