RFC partial sector read support
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | block: export dma_alignment attributeblock/ | +7 | 0 replies | |
| 2/4 | block: relax direct io memory alignmentblock/ fs/ fs/ +1 more | +23 | 0 replies | |
| 3/4 | block: add bit bucket supportblock/ block/ block/ +5 more | +77 | 0 replies | |
| 4/4 | nvme: add bit bucket supportdrivers/ drivers/ drivers/ +1 more | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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