Skip to content

Commit 5824e18

Browse files
avri-altman-sndkmartinkpetersen
authored andcommitted
scsi: ufs: core: Remove redundant host_lock calls around UTMRLCLR
There is no need to serialize single read/write calls to the host controller registers. Remove the redundant host_lock calls that protect access to the task management request List cLear register: UTMRLCLR. Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20241024075033.562562-3-avri.altman@wdc.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 2b314e1 commit 5824e18

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/ufs/core/ufshcd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6995,14 +6995,11 @@ static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag)
69956995
{
69966996
int err = 0;
69976997
u32 mask = 1 << tag;
6998-
unsigned long flags;
69996998

70006999
if (!test_bit(tag, &hba->outstanding_tasks))
70017000
goto out;
70027001

7003-
spin_lock_irqsave(hba->host->host_lock, flags);
70047002
ufshcd_utmrl_clear(hba, tag);
7005-
spin_unlock_irqrestore(hba->host->host_lock, flags);
70067003

70077004
/* poll for max. 1 sec to clear door bell register by h/w */
70087005
err = ufshcd_wait_for_register(hba,

0 commit comments

Comments
 (0)