All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Hannes Reinecke <hare@suse.de>
Cc: linux-nvme@lists.infradead.org, Christoph Hellwig <hch@lst.de>,
	Keith Busch <keith.busch@wdc.com>,
	Sagi Grimberg <sagi@grimberg.me>
Subject: Re: [PATCH] nvme: stop mad sqsize increasing and decreasing
Date: Tue, 17 Mar 2020 13:49:19 +0100	[thread overview]
Message-ID: <20200317124919.GD12316@lst.de> (raw)
In-Reply-To: <20200313124410.39193-1-hare@suse.de>

On Fri, Mar 13, 2020 at 01:44:10PM +0100, Hannes Reinecke wrote:
> The NVMe spec only states:
> 
> "One slot in each queue is not available for use due to Head and
> Tail entry pointer definition."
> 
> It does not say that the actual queue size needs to decremented
> by one, it just means that we'll have to leave one slot free.
> So kill the mad decreasing and increasing of sqsize, leave it
> at the specified size, and only decrement the tagset by one to
> ensure we leave one slot free.

Not sure what is mad here.  All the *qsize values are 0s based
values on the wire, so the on the wire value need to be one
lower than the proper value.

Maybe we need to0sb / from0sb helpers to document these annoying
things a little better?  (%#^#Y@$ NVMe designers for burdening
us with this bullshit..)

_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

  reply	other threads:[~2020-03-17 12:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13 12:44 [PATCH] nvme: stop mad sqsize increasing and decreasing Hannes Reinecke
2020-03-17 12:49 ` Christoph Hellwig [this message]
2020-03-17 15:38   ` 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=20200317124919.GD12316@lst.de \
    --to=hch@lst.de \
    --cc=hare@suse.de \
    --cc=keith.busch@wdc.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.