Skip to content

RFC fs: support dma-buf backed direct I/O

Anuj Gupta linux-block linux-fsdevel linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: factor out bdev_init_dma_buf_io_ctx()block/fops.c include/linux/blkdev.h+12 -31 reply
2/4block: refuse a dma-buf bio for a disk the buffer was not registered onblock/bio.c block/fops.c include/linux/dma-buf-io.h+23 -13 replies
3/4iomap: add dma-buf direct I/O guards and registration helperfs/iomap/direct-io.c include/linux/iomap.h+33 -11 reply
4/4xfs: support dma-buf registered buffers for direct I/Ofs/xfs/xfs_file.c+30 -04 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] fs: support dma-buf backed direct I/O

This series lets an application register a dma-buf against a file, so reads and writes go directly to the device as dma-buf backed bios with no per-command DMA mapping.

This series builds on Pavel Begunkov's dma-buf block support v11,
https://lore.kernel.org/all/[email protected]/
which is queued in Jens Axboe's tree:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git/log/?h=for-7.4/io_uring-dmabuf

A separate kernel tree is present here:
https://github.com/anuj7781/linux-kernel/tree/anuj/fs-dmabuf-rfc-v11-desc-v2

Nitesh Shetty (4):
block: factor out bdev_init_dma_buf_io_ctx()
block: refuse a dma-buf bio for a disk the buffer was not registered
on
iomap: add dma-buf direct I/O guards and registration helper
xfs: support dma-buf registered buffers for direct I/O

 block/bio.c                | 15 +++++++++++++++
 block/fops.c               | 19 +++++++++++++++----
 fs/iomap/direct-io.c       | 31 ++++++++++++++++++++++++++++++-
 fs/xfs/xfs_file.c          | 30 ++++++++++++++++++++++++++++++
 include/linux/blkdev.h     |  3 +++
 include/linux/dma-buf-io.h |  2 ++
 include/linux/iomap.h      |  3 +++
 7 files changed, 98 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0