From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>, Keith Busch <kbusch@kernel.org>,
linux-nvme@lists.infradead.org
Subject: Re: [PATCH] nvme: retry commands if DNR bit is not set
Date: Wed, 1 Feb 2023 14:55:20 +0100 [thread overview]
Message-ID: <cd86edbb-d507-2bf5-393e-03b154a01ee0@suse.de> (raw)
In-Reply-To: <20230201130920.GA30589@lst.de>
On 2/1/23 14:09, Christoph Hellwig wrote:
> On Wed, Feb 01, 2023 at 12:50:01PM +0100, Hannes Reinecke wrote:
>> Add a 'retry' argument to __nvme_submit_sync_cmd() to instruct
>> the function to not set the FAILFAST_DRIVER bit for the command,
>> causing it to be retried in nvme_decide_disposition() if the DNR
>> bit is not set in the command result.
>> And modify the authentication code to allow for retries.
>
> This is missing the why. And maybe we can find a better interace than
> a magic bool flag.
The 'why' is that commands submitted internally (via
nvme_submit_sync_cmd() and friends are typically normal NVMe commands,
and as such should be subjected to the normal 'DNR' evaluation rules.
This has been an issue with the authentication protocol commands in
particular, but I've got reports that the 'connect' command itself might
also be affected.
Of course we can discuss the interface; personally I found the flag not
a bad idea...
Cheers,
Hannes
next prev parent reply other threads:[~2023-02-01 13:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 11:50 [PATCH] nvme: retry commands if DNR bit is not set Hannes Reinecke
2023-02-01 13:09 ` Christoph Hellwig
2023-02-01 13:55 ` Hannes Reinecke [this message]
2023-02-01 14:45 ` Jens Axboe
-- strict thread matches above, loose matches on Subject: below --
2022-11-02 7:36 Hannes Reinecke
2022-11-02 8:00 ` Chao Leng
2022-11-02 14:19 ` Hannes Reinecke
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=cd86edbb-d507-2bf5-393e-03b154a01ee0@suse.de \
--to=hare@suse.de \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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