From: Keith Busch <kbusch@kernel.org>
To: Guixin Liu <kanie@linux.alibaba.com>
Cc: Jens Axboe <axboe@kernel.dk>, Christoph Hellwig <hch@lst.de>,
Sagi Grimberg <sagi@grimberg.me>,
Nilay Shroff <nilay@linux.ibm.com>,
Daniel Wagner <dwagner@suse.de>,
John Garry <john.g.garry@oracle.com>,
Hannes Reinecke <hare@suse.de>,
linux-nvme@lists.infradead.org
Subject: Re: [PATCH v2 0/2] nvmet: fix FID 82h status codes for invalid NSIDs
Date: Sat, 3 Oct 2026 09:54:38 +0100 [thread overview]
Message-ID: <asDCzjTCApNDwS8R@kbusch-mbp> (raw)
In-Reply-To: <20260920033500.3209138-1-kanie@linux.alibaba.com>
On Sun, Sep 20, 2026 at 11:34:58AM +0800, Guixin Liu wrote:
> The Reservation Notification Mask feature (FID 82h) defines its own
> status code for NSIDs that do not name a namespace supporting
> reservations:
>
> "A Get Features command that uses a namespace ID of FFFFFFFFh
> shall be aborted with status code of Invalid Field in Command. [...]
> If a Set Features command or a Get Features command attempts to
> access the Reservation Notification Mask on a namespace that does
> not support reservations or is invalid, then that command is
> aborted with status code of Invalid Field in Command."
>
> -- NVMe Base Specification, section 5.2.26.1.33
>
> nvmet routes the namespace lookup of both handlers through
> nvmet_req_find_ns(), which returns Invalid Namespace or Format for an
> unknown NSID. That is the correct status for the generic
> namespace-scoped admin commands, but not for this feature. A Set
> Features 82h naming a nonexistent NSID, a Get Features 82h naming a
> nonexistent NSID, and a Get Features 82h using the broadcast NSID are
> all aborted with Invalid Namespace or Format instead of Invalid Field
> in Command.
>
> Each patch fixes one handler and translates the lookup failure to
> Invalid Field in Command. The Set Features broadcast, the
> namespace-without-reservations case, the disabled namespace path
> (Internal Path Error, commit 505363957fad ("nvmet: fix nvme status
> code when namespace is disabled")) and everything else keep their
> current behavior.
Thanks, applied to nvme-7.3.
prev parent reply other threads:[~2026-10-03 8:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 3:34 [PATCH v2 0/2] nvmet: fix FID 82h status codes for invalid NSIDs Guixin Liu
2026-09-20 3:34 ` [PATCH v2 1/2] nvmet: return Invalid Field for invalid NSIDs in Set Features 82h Guixin Liu
2026-09-20 11:07 ` Nilay Shroff
2026-09-21 6:53 ` Christoph Hellwig
2026-09-21 7:56 ` Guixin Liu
2026-09-21 8:24 ` Nilay Shroff
2026-09-25 7:31 ` Christoph Hellwig
2026-09-25 11:24 ` Nilay Shroff
2026-09-20 3:35 ` [PATCH v2 2/2] nvmet: return Invalid Field for invalid NSIDs in Get " Guixin Liu
2026-09-25 7:32 ` Christoph Hellwig
2026-09-25 11:24 ` Nilay Shroff
2026-10-03 8:54 ` Keith Busch [this message]
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=asDCzjTCApNDwS8R@kbusch-mbp \
--to=kbusch@kernel.org \
--cc=axboe@kernel.dk \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=john.g.garry@oracle.com \
--cc=kanie@linux.alibaba.com \
--cc=linux-nvme@lists.infradead.org \
--cc=nilay@linux.ibm.com \
--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