]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedi: Fix TMF tid allocation
authorMike Christie <michael.christie@oracle.com>
Tue, 25 May 2021 18:18:15 +0000 (13:18 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Jun 2021 05:28:22 +0000 (01:28 -0400)
commitd97286cca6f1272727cf525a7b0b1a5474f2a18e
treeb3faf128d204b9132d65b6d4d0cbe5f81664ee5e
parentce9e6712f67dceef8bbeb0e79f6f4e7f5c7d2b9f
scsi: qedi: Fix TMF tid allocation

qedi_iscsi_abort_work and qedi_tmf_work both allocate a tid then call
qedi_send_iscsi_tmf which also allocates a tid. This removes the tid
allocation from the callers.

Link: https://lore.kernel.org/r/20210525181821.7617-23-michael.christie@oracle.com
Reviewed-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_fw.c
drivers/scsi/qedi/qedi_gbl.h
drivers/scsi/qedi/qedi_iscsi.c