Patch "scsi: ufs: core: Unbreak the reset handler" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: ufs: core: Unbreak the reset handler

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-ufs-core-unbreak-the-reset-handler.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 75e34d00f49764c124fd21a46352c204de956370
Author: Bart Van Assche <bvanassche@xxxxxxx>
Date:   Thu Sep 16 10:54:04 2021 -0700

    scsi: ufs: core: Unbreak the reset handler
    
    [ Upstream commit d04a968c33684b15d1206e23fc1119ce0f0587fb ]
    
    A command tag is passed as the second argument of the
    __ufshcd_transfer_req_compl() call in ufshcd_eh_device_reset_handler()
    instead of a bitmask. Fix this by passing a bitmask as argument instead of
    a command tag.
    
    Link: https://lore.kernel.org/r/20210916175408.2260084-1-bvanassche@xxxxxxx
    Fixes: a45f937110fa ("scsi: ufs: Optimize host lock on transfer requests send/compl paths")
    Cc: Can Guo <cang@xxxxxxxxxxxxxx>
    Reviewed-by: Avri Altman <avri.altman@xxxxxxx>
    Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index a858e7d998a6..3a204324151a 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -6858,7 +6858,7 @@ static int ufshcd_eh_device_reset_handler(struct scsi_cmnd *cmd)
 			err = ufshcd_clear_cmd(hba, pos);
 			if (err)
 				break;
-			__ufshcd_transfer_req_compl(hba, pos, /*retry_requests=*/true);
+			__ufshcd_transfer_req_compl(hba, 1U << pos, false);
 		}
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux