From: "Kiwoong Kim" <kwmad.kim@samsung.com>
To: "'Bart Van Assche'" <bvanassche@acm.org>,
<linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<alim.akhtar@samsung.com>, <jejb@linux.ibm.com>,
<martin.petersen@oracle.com>, <kwangwon.min@samsung.com>,
<hy50.seo@samsung.com>, <cpgs@samsung.com>, <h10.kim@samsung.com>
Cc: <stable@vger.kernel.org>, <stanleyjhu@google.com>,
"'Bean Huo'" <beanhuo@micron.com>
Subject: RE: [PATCH v6 1/2] ufs: core: skip ABORT TASK for device management commands
Date: Thu, 5 Nov 2026 12:34:25 +0900 [thread overview]
Message-ID: <002101dd6cd6$8e510b20$aaf32160$@samsung.com> (raw)
In-Reply-To: <8446dc27-9518-4b0c-b9e9-116458210616@acm.org>
Kiwoong Kim
BRs.
> -----Original Message-----
> From: Bart Van Assche <bvanassche@acm.org>
> Sent: Thursday, November 5, 2026 10:28 AM
> To: Kiwoong Kim <kwmad.kim@samsung.com>; linux-scsi@vger.kernel.org;
> linux-kernel@vger.kernel.org; alim.akhtar@samsung.com; jejb@linux.ibm.com;
> martin.petersen@oracle.com; kwangwon.min@samsung.com; hy50.seo@samsung.com;
> cpgs@samsung.com; h10.kim@samsung.com
> Cc: stable@vger.kernel.org; stanleyjhu@google.com; Bean Huo
> <beanhuo@micron.com>
> Subject: Re: [PATCH v6 1/2] ufs: core: skip ABORT TASK for device
> management commands
>
> On 11/4/26 4:43 PM, Kiwoong Kim wrote:
> > @@ -8046,6 +8046,9 @@ int ufshcd_try_to_abort_task(struct ufs_hba *hba,
> int tag) >
> > lrbp = scsi_cmd_priv(cmd);
> >
> > + if (!ufshcd_is_scsi_cmd(cmd))
> > + goto clear_cmd;
> > +
>
> ufshcd_abort() already has the following code for the SDB path:
>
> if (blk_mq_is_reserved_rq(rq))
> err = ufshcd_clear_cmd(hba, tag);
> else
> err = ufshcd_try_to_abort_task(hba, tag);
>
> and ufshcd_abort_one() skips reserved requests. Hence, ufshcd_mcq_abort()
> is the only caller that can pass a device management command to
> ufshcd_try_to_abort_task(). Please handle this the same way for both paths.
> Either add the check in ufshcd_mcq_abort(), similar to the SDB path, or
> keep it in ufshcd_try_to_abort_task() and remove the now redundant check
> from ufshcd_abort().
>
> If the check stays in ufshcd_try_to_abort_task(), please also update its
> kernel-doc header. That header says that UFS_QUERY_TASK and UFS_ABORT_TASK
> are sent unconditionally.
>
> > Fixes: 08b12cda6c44 ("scsi: ufs: core: Switch to
> scsi_get_internal_cmd()")
> > Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com> > Reviewed-by: Bean
> Huo <beanhuo@micron.com> > Reported-by: Bart Van Assche
> <bvanassche@acm.org>
>
> Please move the Reported-by: tag above the Signed-off-by: tag.
> checkpatch also expects a Closes: tag after Reported-by:.
>
> Thanks,
>
> Bart.
next prev parent reply other threads:[~2026-11-05 3:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20261105004351epcas2p19e657481834dc8493d926f10cff77d03@epcas2p1.samsung.com>
2026-11-05 0:43 ` [PATCH v6 0/2] ufs: fix the abort path of device management commands in MCQ mode Kiwoong Kim
2026-11-05 0:43 ` [PATCH v6 1/2] ufs: core: skip ABORT TASK for device management commands Kiwoong Kim
2026-11-05 1:28 ` Bart Van Assche
2026-11-05 3:34 ` Kiwoong Kim [this message]
2026-11-05 3:36 ` Kiwoong Kim
2026-11-05 0:43 ` [PATCH v6 2/2] ufs: mcq: poll OCS after sq cleanup " Kiwoong Kim
2026-11-05 1:30 ` Bart Van Assche
2026-11-05 5:59 ` Kiwoong Kim
2026-11-05 17:53 ` Bart Van Assche
2026-11-06 1:56 ` Kiwoong Kim
2026-11-06 4:39 ` Bart Van Assche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002101dd6cd6$8e510b20$aaf32160$@samsung.com' \
--to=kwmad.kim@samsung.com \
--cc=alim.akhtar@samsung.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=cpgs@samsung.com \
--cc=h10.kim@samsung.com \
--cc=hy50.seo@samsung.com \
--cc=jejb@linux.ibm.com \
--cc=kwangwon.min@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=stable@vger.kernel.org \
--cc=stanleyjhu@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.