diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2019-08-08 20:02:06 -0700 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-12 21:34:08 -0400 |
| commit | 85cffefa09e448906a6f0bc20f422d75a18675bd (patch) | |
| tree | 514d00f532ba5e329c1c73307a59b2317deb283e /tools/perf/scripts/python | |
| parent | scsi: qla2xxx: Introduce the function qla2xxx_init_sp() (diff) | |
| download | linux-85cffefa09e448906a6f0bc20f422d75a18675bd.tar.gz linux-85cffefa09e448906a6f0bc20f422d75a18675bd.zip | |
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 <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
