scsi: ufs: No need to send Abort Task if the task in DB was cleared
authorBean Huo <beanhuo@micron.com>
Tue, 11 Aug 2020 14:18:59 +0000 (16:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Aug 2020 02:09:14 +0000 (22:09 -0400)
commitd87a1f6d021f401f99ae2ba8ccddb87dac921308
tree0941034b26a9fd10a9bd708db3ff5650cd59a964
parentb10178ee7fa88b68a9e8adc06534d2605cb0ec23
scsi: ufs: No need to send Abort Task if the task in DB was cleared

If the bit corresponding to a task in the Doorbell register has been
cleared, no need to poll the status of the task on the device side and to
send an Abort Task TM. Instead, let it directly goto cleanup.

In addition, to keep original debug output, move the goto below the debug
print.

Link: https://lore.kernel.org/r/20200811141859.27399-3-huobean@gmail.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c