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: Ziqi Chen <ziqichen@codeaurora.org>
*
* 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>
lrbp, cmd->request);
}
- clear_bit_unlock(index, &hba->lrb_in_use);
req = cmd->request;
if (req) {
/* Update IO svc time latency histogram */