scsi: qedf: Use a separate completion for cleanup commands
authorChad Dupuis <cdupuis@marvell.com>
Tue, 26 Mar 2019 07:38:39 +0000 (00:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:54:52 +0000 (21:54 -0400)
commit96b1765a099b3b38d5a77796c45ee11a6ea6bf84
tree4dfd003412baf9c039d65debe0725f595965e927
parent69ef2c692510d5154c613569caeeed3c74806231
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>
drivers/scsi/qedf/qedf.h
drivers/scsi/qedf/qedf_io.c