[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fd9129d7-5688-20de-a716-738ce5076b50@quicinc.com>
Date: Thu, 25 Aug 2022 11:08:18 -0700
From: "Asutosh Das (asd)" <quic_asutoshd@...cinc.com>
To: Bart Van Assche <bvanassche@....org>,
Can Guo <quic_cang@...cinc.com>, <quic_nguyenb@...cinc.com>,
<quic_xiaosenh@...cinc.com>, <stanley.chu@...iatek.com>,
<adrian.hunter@...el.com>, <beanhuo@...ron.com>,
<avri.altman@....com>, <mani@...nel.org>,
<linux-scsi@...r.kernel.org>, <kernel-team@...roid.com>
CC: Alim Akhtar <alim.akhtar@...sung.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Jinyoung Choi <j-young.choi@...sung.com>,
jongmin jeong <jjmin.jeong@...sung.com>,
Kiwoong Kim <kwmad.kim@...sung.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH v2 1/2] scsi: ufs: Add Multi-Circular Queue support
On 8/25/2022 11:04 AM, Bart Van Assche wrote:
> On 8/24/22 18:42, Asutosh Das (asd) wrote:
>> On 8/18/2022 7:41 PM, Bart Van Assche wrote:
>>> On 8/11/22 03:33, Can Guo wrote:
>>>> +static inline void ufshcd_mcq_process_event(struct ufs_hba *hba,
>>>> + struct ufs_hw_queue *hwq)
>>>> +{
>>>> + struct cq_entry *cqe = ufshcd_mcq_cur_cqe(hwq);
>>>> + int tag;
>>>> +
>>>> + tag = ufshcd_mcq_get_tag(hba, hwq, cqe);
>>>> + ufshcd_compl_one_task(hba, tag, cqe);
>>>> +}
>>>
>>> Consider changing "process_event" into "process_cqe". Consider
>>> renaming ufshcd_compl_one_task() into ufshcd_compl_one_cqe().
>>>
>> The preparatory patch that would precede this change would define
>> ufshcd_compl_one_task() in ufshcd.c. Since this function would be
>> invoked both from Single Doorbell mode and MCQ mode,
>> ufshcd_compl_one_task() sounds more relevant. What say?
>
> The name "task" is confusing since in SCSI standard documents it refers
> to "task management" while ufshcd_compl_one_task() is not related to
> SCSI task management at all. So I would appreciate it if another name is
> chosen than ufshcd_compl_one_task().
>
Ok, makes sense. Will change the name in the next version.
Thanks,
-asd
Powered by blists - more mailing lists