ANDROID: scsi: ufs: Fix locking in ufshcd_queuecommand()

Commit 0fd420005c ("Merge 5.15.89 into android14-5.15") added an
rcu_read_lock() call in ufshcd_queuecommand() that is not present in the
upstream kernel. Since this makes locking in ufshcd_queuecommand()
unbalanced, remove that rcu_read_lock() call again.

Bug: 258234315
Change-Id: I555d91fe0aaabe95c9b762848b05af6c1ffc2be4
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
Bart Van Assche
2023-01-18 11:37:22 -08:00
committed by Greg Kroah-Hartman
parent 544ef44837
commit 329abc0e50

View File

@@ -2846,12 +2846,6 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
*/
rcu_read_lock();
/*
* Allows the UFS error handler to wait for prior ufshcd_queuecommand()
* calls.
*/
rcu_read_lock();
switch (hba->ufshcd_state) {
case UFSHCD_STATE_OPERATIONAL:
break;