]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Requeue aborted request
authorPeter Wang <peter.wang@mediatek.com>
Tue, 1 Oct 2024 09:19:17 +0000 (17:19 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Oct 2024 02:07:32 +0000 (22:07 -0400)
commit8fa075804cb3b00960dd5c06554308175c834530
treef91b597dc30a141f30fa6fe78c947ff6740f6c25
parentbf0c6cc73f7f91ec70307f7c72343f6cb7d65d01
scsi: ufs: core: Requeue aborted request

After the SQ cleanup fix, the CQ will receive a response with the
corresponding tag marked as OCS: ABORTED. To align with the behavior of
Legacy SDB mode, the handling of OCS: ABORTED has been changed to match
that of OCS_INVALID_COMMAND_STATUS (SDB), with both returning a SCSI
result of DID_REQUEUE.

Furthermore, the workaround implemented before the SQ cleanup fix can be
removed.

Fixes: ab248643d3d6 ("scsi: ufs: core: Add error handling for MCQ mode")
Cc: stable@vger.kernel.org
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20241001091917.6917-3-peter.wang@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c