public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Christoph Hellwig <hch@lst.de>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH] nvme: don't memset() the normal read/write command
Date: Mon, 18 Oct 2021 06:38:51 -0600	[thread overview]
Message-ID: <4a5715e6-af4a-341c-906a-e5b5aa4e9d9a@kernel.dk> (raw)
In-Reply-To: <20211018123750.GA17785@lst.de>

On 10/18/21 6:37 AM, Christoph Hellwig wrote:
> On Mon, Oct 18, 2021 at 06:33:51AM -0600, Jens Axboe wrote:
>>>>  	cmnd->rw.nsid = cpu_to_le32(ns->head->ns_id);
>>>> +	cmnd->rw.rsvd2 = 0;
>>>
>>> There should be no need to clear this reserved space.
>>
>> Actually wasn't sure, sometimes hardware specs required reserved fields
>> to get cleared. nvme does not? I'd be happy to drop it if not the case.
> 
> It only requires bits in otherwise unused fields to be the zeroed.
> 
> That being said, yes we're probably on the safe side by clearing
> everything.

I'll keep the reserved clearing.

-- 
Jens Axboe


      reply	other threads:[~2021-10-18 12:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-12 18:13 [PATCH] nvme: don't memset() the normal read/write command Jens Axboe
2021-10-12 18:31 ` Keith Busch
2021-10-12 18:56   ` Jens Axboe
2021-10-13  4:14 ` Chaitanya Kulkarni
2021-10-13  4:58 ` Christoph Hellwig
2021-10-18 10:22   ` Christoph Hellwig
2021-10-18 12:33   ` Jens Axboe
2021-10-18 12:37     ` Christoph Hellwig
2021-10-18 12:38       ` Jens Axboe [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=4a5715e6-af4a-341c-906a-e5b5aa4e9d9a@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=linux-block@vger.kernel.org \
    /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