Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Weiwen Hu <huweiwen@linux.alibaba.com>
Cc: linux-nvme@lists.infradead.org,
	Chaitanya Kulkarni <chaitanyak@nvidia.com>,
	Keith Busch <kbusch@kernel.org>,
	Mike Christie <michael.christie@oracle.com>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH v2] nvme: fix nvme_pr_* status code parsing
Date: Fri, 31 May 2024 10:16:50 +0200	[thread overview]
Message-ID: <20240531081650.GA19765@lst.de> (raw)
In-Reply-To: <20240530061646.52167-1-huweiwen@linux.alibaba.com>

On Thu, May 30, 2024 at 02:16:46PM +0800, Weiwen Hu wrote:
> +	switch (nvme_sc & 0x7ff) {

Can you use the opportunity to add a NVME_SC_MASK symbolic
name for the magic 0x7ff?  We should have done this earlier
with already 5 occurrences, but better now than never.

Otherwise this looks good to me.



  reply	other threads:[~2024-05-31  8:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-30  6:16 [PATCH v2] nvme: fix nvme_pr_* status code parsing Weiwen Hu
2024-05-31  8:16 ` Christoph Hellwig [this message]
2024-05-31  8:50   ` Weiwen Hu
2024-05-31 20:53   ` Keith Busch
2024-05-31 20:52 ` Keith Busch

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=20240531081650.GA19765@lst.de \
    --to=hch@lst.de \
    --cc=chaitanyak@nvidia.com \
    --cc=huweiwen@linux.alibaba.com \
    --cc=kbusch@kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=michael.christie@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