summaryrefslogtreecommitdiff
path: root/drivers/scsi/qedf/qedf.h
diff options
context:
space:
mode:
authorChad Dupuis <cdupuis@marvell.com>2019-03-26 10:38:39 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2019-03-28 04:54:52 +0300
commit96b1765a099b3b38d5a77796c45ee11a6ea6bf84 (patch)
tree4dfd003412baf9c039d65debe0725f595965e927 /drivers/scsi/qedf/qedf.h
parent69ef2c692510d5154c613569caeeed3c74806231 (diff)
downloadlinux-96b1765a099b3b38d5a77796c45ee11a6ea6bf84.tar.xz
scsi: qedf: Use a separate completion for cleanup commands
- If a TMF and cleanup are issued at the same time they could cause a call trace if issued against the same xid as the io_req->tm_done completion is used for both. - Set and clear cleanup bit in cleanup routine. Signed-off-by: Chad Dupuis <cdupuis@marvell.com> Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf/qedf.h')
-rw-r--r--drivers/scsi/qedf/qedf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h
index 9e5e18316ddc..fb7d0d5ffa67 100644
--- a/drivers/scsi/qedf/qedf.h
+++ b/drivers/scsi/qedf/qedf.h
@@ -128,6 +128,7 @@ struct qedf_ioreq {
struct delayed_work timeout_work;
struct completion tm_done;
struct completion abts_done;
+ struct completion cleanup_done;
struct e4_fcoe_task_context *task;
struct fcoe_task_params *task_params;
struct scsi_sgl_task_params *sgl_task_params;