OSDN Git Service

scsi: ufs: Avoid messing up the compl_time_stamp of lrbs
authorCan Guo <cang@codeaurora.org>
Tue, 26 Nov 2019 06:53:32 +0000 (22:53 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:08:52 +0000 (22:08 -0500)
commit74a527a2ab1c5c09f7bf37cfb00a93b6d75fbda7
treeba7b4589d898f178cd1953c972ae9ce841411e5d
parenta7ef6f029a7658f2d9b9a78b3b1d8f4cb981bbdf
scsi: ufs: Avoid messing up the compl_time_stamp of lrbs

To be on the safe side, do not touch lrb after clearing its slot in the
lrb_in_use bitmap to avoid messing up the next task which would possibly
occupy this lrb.

[mkp: applied by hand]

Link: https://lore.kernel.org/r/1574751214-8321-4-git-send-email-cang@qti.qualcomm.com
Reviewed by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c