Skip to content

implement direct IO with integrity

Alexander V. Buev io-uring linux-block 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 7 repliesIn review
  2. v43 patches 2 repliesSuperseded
  3. v33 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches6 repliesSuperseded
v13 patches16 repliesSuperseded

Changes in v5 from the cover letter

- fixed sparse warnings reported by robot
- some litle code sync rw.c -> rw_pi.c
- some includes cleanup

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: bio-integrity: add PI iovec to bioblock/bio-integrity.c include/linux/bio.h+171 -01 reply
2/3block: io-uring: add READV_PI/WRITEV_PI operationsinclude/linux/fs.h include/uapi/linux/io_uring.h include/uapi/linux/uio.h +6 more+708 -23 replies
3/3block: fops: handle IOCB_USE_PI in direct IOblock/fops.c+80 -00 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/3] implement direct IO with integrity

This series of patches makes possible to do direct block IO with integrity payload using io uring kernel interface. Userspace app can utilize new READV_PI/WRITEV_PI operation with a new fields in sqe struct (pi_addr/pi_len) to provide iovec's with integrity data.

Changes since v4:
- fixed sparse warnings reported by robot
- some litle code sync rw.c -> rw_pi.c
- some includes cleanup

Changes since v3:
- fixed warnings reported by robot

Changes since v2:
- separate code from fast path
- keep rw_pi struct size <= 64 byte
- using kiocb->private pointer to pass
PI data iterator to block direct IO layer
- improved bio_integrity_add_iovec function

Alexander V. Buev (3):
block: bio-integrity: add PI iovec to bio
block: io-uring: add READV_PI/WRITEV_PI operations
block: fops: handle IOCB_USE_PI in direct IO

 block/bio-integrity.c         | 163 +++++++++
 block/fops.c                  |  80 +++++
 include/linux/bio.h           |   8 +
 include/linux/fs.h            |   1 +
 include/uapi/linux/io_uring.h |   6 +
 include/uapi/linux/uio.h      |   3 +-
 io_uring/Makefile             |   3 +-
 io_uring/io_uring.c           |   2 +
 io_uring/opdef.c              |  27 ++
 io_uring/rw.h                 |   4 +
 io_uring/rw_pi.c              | 630 ++++++++++++++++++++++++++++++++++
 io_uring/rw_pi.h              |  34 ++
 12 files changed, 959 insertions(+), 2 deletions(-)
 create mode 100644 io_uring/rw_pi.c
 create mode 100644 io_uring/rw_pi.h
Signature · 1 line
2.30.2