Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11306d8c authored by Ziqi Chen's avatar Ziqi Chen
Browse files

Scsi: ufs: fix issue of task tag in used



Fix a coding error that lrb_in_use bitmap is cleared twice after its
corresponding request is completed. Otherwise, a tag, which is assigned
to a new request, get released from lrb_in_use in the first clear shall
be cleared again even before the new request is actually completed. Fix
this error by removing the second clear.

CRs-Fixed: 2417820
Change-Id: I4216fa32073d2a0f0f15c0979e4dd0ad542ce684
Signed-off-by: default avatarZiqi Chen <ziqichen@codeaurora.org>
parent 83fc1fe4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 *
 * This code is based on drivers/scsi/ufs/ufshcd.c
 * Copyright (C) 2011-2013 Samsung India Software Operations
 * Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 *
 * Authors:
 *	Santosh Yaraganavi <santosh.sy@samsung.com>
@@ -5611,7 +5611,6 @@ static void __ufshcd_transfer_req_compl(struct ufs_hba *hba,
					lrbp, cmd->request);
			}

			clear_bit_unlock(index, &hba->lrb_in_use);
			req = cmd->request;
			if (req) {
				/* Update IO svc time latency histogram */