]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita57a861848335d87e1e58bd4f0055254b777ee42
tree0262500203ddd95c9b468e7c871369268de71fc2
parentb50f3dedd5627968406708d2f58bfb8733421243
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