Skip to content

RFC partial sector read support

Keith Busch linux-nvme 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: export dma_alignment attributeblock/blk-sysfs.c+7 -00 replies
2/4block: relax direct io memory alignmentblock/fops.c fs/direct-io.c fs/iomap/direct-io.c +1 more+23 -110 replies
3/4block: add bit bucket supportblock/blk-core.c block/blk-merge.c block/blk-mq.c +5 more+77 -100 replies
4/4nvme: add bit bucket supportdrivers/nvme/host/core.c drivers/nvme/host/nvme.h drivers/nvme/host/pci.c +1 more+26 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] partial sector read support

From: Keith Busch <[email protected]>

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(-)
Signature · 1 line
2.30.2