scsi: qedi: Wake up if cmd_cleanup_req is set
authorMike Christie <michael.christie@oracle.com>
Tue, 25 May 2021 18:18:21 +0000 (13:18 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Jun 2021 05:28:23 +0000 (01:28 -0400)
commited1b86ba0fba3d586cd53057551a95197b0a37ad
tree0262500203ddd95c9b468e7c871369268de71fc2
parentb40f3894e39ee10d519ef2447d7e56e92a1e0863
scsi: qedi: Wake up if cmd_cleanup_req is set

If we got a response then we should always wake up the conn. For both the
cmd_cleanup_req == 0 or cmd_cleanup_req > 0, we shouldn't dig into
iscsi_itt_to_task because we don't know what the upper layers are doing.

We can also remove the qedi_clear_task_idx call here because once we signal
success libiscsi will loop over the affected commands and end up calling
the cleanup_task callout which will release it.

Link: https://lore.kernel.org/r/20210525181821.7617-29-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