From: Damien Le Moal <dlemoal@kernel.org>
To: Niklas Cassel <cassel@kernel.org>, Tommy Kelly <linux@tkel.ly>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
John Garry <john.g.garry@oracle.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH v5 2/4] ata: libata-scsi: do not use the deferred QC feature for ATA_DEFER_PORT
Date: Mon, 18 May 2026 11:20:31 +0200 [thread overview]
Message-ID: <16999d8e-e9cf-4a30-b478-9451cd50339e@kernel.org> (raw)
In-Reply-To: <20260514073858.1175072-8-cassel@kernel.org>
On 2026/05/14 9:39, Niklas Cassel wrote:
> The deferred QC feature was meant to handle mixed NCQ and non-NCQ commands,
> i.e. for return value ATA_DEFER_LINK.
>
> ATA_DEFER_PORT is returned by PATA drivers, but also certain SATA drivers
> like sata_mv and sata_sil24 that uses ap->excl_link to workaround hardware
> bugs in these HBAs. Regardless of the reason, using the deferred QC feature
> for ATA_DEFER_PORT is always wrong, and will break the ap->excl_link usage
> of the SATA drivers that rely on that feature.
>
> Modify ata_scsi_qc_issue() to only use the deferred QC feature when mixing
> NCQ and non-NCQ commands, i.e. ATA_DEFER_LINK.
>
> Fixes: 0ea84089dbf6 ("ata: libata-scsi: avoid Non-NCQ command starvation")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Looks good.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-05-18 9:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 7:38 [PATCH v5 0/4] ata: fix deferred QC handling for port multipliers Niklas Cassel
2026-05-14 7:38 ` [PATCH v5 1/4] ata: libata-scsi: improve readability of ata_scsi_qc_issue() Niklas Cassel
2026-05-18 9:19 ` Damien Le Moal
2026-05-14 7:39 ` [PATCH v5 2/4] ata: libata-scsi: do not use the deferred QC feature for ATA_DEFER_PORT Niklas Cassel
2026-05-18 9:20 ` Damien Le Moal [this message]
2026-05-14 7:39 ` [PATCH v5 3/4] ata: libata-scsi: do not use the deferred QC feature on PMPs with CBS Niklas Cassel
2026-05-18 9:23 ` Damien Le Moal
2026-05-14 7:39 ` [PATCH v5 4/4] ata: libata-scsi: do not needlessly defer commands when using PMP with FBS Niklas Cassel
2026-05-18 9:24 ` Damien Le Moal
2026-05-14 10:43 ` [PATCH v5 0/4] ata: fix deferred QC handling for port multipliers Tommy Kelly
2026-05-14 11:17 ` Niklas Cassel
2026-05-18 10:33 ` Niklas Cassel
2026-05-18 10:37 ` Niklas Cassel
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=16999d8e-e9cf-4a30-b478-9451cd50339e@kernel.org \
--to=dlemoal@kernel.org \
--cc=cassel@kernel.org \
--cc=john.g.garry@oracle.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux@tkel.ly \
--cc=martin.petersen@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox