From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH] nvme: Implement NS Optimial IO Boundary from 1.3 Spec
Date: Fri, 12 May 2017 17:18:31 -0400 [thread overview]
Message-ID: <20170512211831.GD21136@localhost.localdomain> (raw)
In-Reply-To: <1494620945-8061-1-git-send-email-scott.bauer@intel.com>
On Fri, May 12, 2017@02:29:05PM -0600, Scott Bauer wrote:
> The NVMe 1.3 spec introduces Namespace Optimal IO Boundaries (NOIOB).
> This feature standardizes the stripe mechanism we currently have quirks for.
> This patch implements the necessary logic to handle this new feature.
>
> Signed-off-by: Scott Bauer <scott.bauer at intel.com>
Thanks Scott, looks good to me.
Reviewed-by: Keith Busch <keith.busch at intel.com>
> + if (ns->ctrl->vs >= NVME_VS(1, 3, 0) && le16_to_cpu(id->noiob)) {
> + /* Convert from controller logical blocks to 512 sectors. */
> + iob = ((unsigned int)le16_to_cpu(id->noiob)) << (ns->lba_shift - 9);
> + if (is_power_of_2(iob))
> + blk_queue_chunk_sectors(ns->queue, iob);
> + }
Just want to point out that if a Namespace has this set, then magically
doesn't after a rescan, we're stuck with the previous chunk size. Even if
that does happen, the only harm is a command may be split into two smaller
ones. Not a big deal, and that'll never happen in real life anyway.
next prev parent reply other threads:[~2017-05-12 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 20:29 [PATCH] nvme: Implement NS Optimial IO Boundary from 1.3 Spec Scott Bauer
2017-05-12 21:18 ` Keith Busch [this message]
2017-05-15 15:01 ` Christoph Hellwig
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=20170512211831.GD21136@localhost.localdomain \
--to=keith.busch@intel.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 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.