public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* [RFC 0/4] partial sector read support
@ 2022-05-04 16:32 Keith Busch
  2022-05-04 16:32 ` [RFC 1/4] block: export dma_alignment attribute Keith Busch
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Keith Busch @ 2022-05-04 16:32 UTC (permalink / raw)
  To: linux-nvme, linux-block; +Cc: axboe, hch, Keith Busch

From: Keith Busch <kbusch@kernel.org>

Don't you just hate that you must read a full sector when you only cared
about a few bytes? Well, good news! Standardized protocols provide a way
for the host to describe unwanted read data, allowing partial sector
access. This lets applications reduce allocated memory that was used to
hold the unwanted data, while also reducing link traffic.

This series enables this for the NVMe protocol through direct io. With
this, a userspace app can read a single contiguous byte range, subject
to hardware DMA constraints. An in-kernel user could theorectically
construct a bio to read multiple discontiguous ranges if desired.

Keith Busch (4):
  block: export dma_alignment attribute
  block: relax direct io memory alignment
  block: add bit bucket support
  nvme: add bit bucket support

 block/blk-core.c          |  5 ++++
 block/blk-merge.c         |  3 +-
 block/blk-mq.c            |  2 ++
 block/blk-sysfs.c         | 10 +++++++
 block/fops.c              | 61 +++++++++++++++++++++++++++++++++------
 drivers/nvme/host/core.c  |  3 ++
 drivers/nvme/host/nvme.h  |  6 ++++
 drivers/nvme/host/pci.c   | 17 +++++++++--
 fs/direct-io.c            | 11 ++++---
 fs/iomap/direct-io.c      |  3 +-
 include/linux/blk-mq.h    |  2 ++
 include/linux/blk_types.h |  1 +
 include/linux/blkdev.h    | 18 ++++++++++++
 include/linux/nvme.h      |  2 ++
 14 files changed, 127 insertions(+), 17 deletions(-)

-- 
2.30.2



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-11  0:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-04 16:32 [RFC 0/4] partial sector read support Keith Busch
2022-05-04 16:32 ` [RFC 1/4] block: export dma_alignment attribute Keith Busch
2022-05-04 16:32 ` [RFC 2/4] block: relax direct io memory alignment Keith Busch
2022-05-04 16:32 ` [RFC 3/4] block: add bit bucket support Keith Busch
2022-05-04 16:32 ` [RFC 4/4] nvme: " Keith Busch
2022-05-10 22:41 ` [RFC 0/4] partial sector read support Sagi Grimberg
2022-05-11  0:15   ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox