[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a20841e9-4ec3-4965-8563-3b82673313c4@acm.org>
Date: Mon, 21 Oct 2024 13:25:03 -0700
From: Bart Van Assche <bvanassche@....org>
To: Avri Altman <avri.altman@....com>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/4] scsi: ufs: core: Use reg_lock to protect UTMRLCLR
On 10/21/24 5:03 AM, Avri Altman wrote:
> if (!test_bit(tag, &hba->outstanding_tasks))
> goto out;
>
> - spin_lock_irqsave(hba->host->host_lock, flags);
> + spin_lock_irqsave(&hba->reg_lock, flags);
> ufshcd_utmrl_clear(hba, tag);
> - spin_unlock_irqrestore(hba->host->host_lock, flags);
> + spin_unlock_irqrestore(&hba->reg_lock, flags);
>
> /* poll for max. 1 sec to clear door bell register by h/w */
> err = ufshcd_wait_for_register(hba,
Hi Avri,
ufshcd_utmrl_clear() performs a single write so I assume that calls of
that function do not have to be serialized?
Thanks,
Bart.
Powered by blists - more mailing lists