Skip to content

io_uring: cancelable uring_cmd

Ming Lei io-uring linux-block 5 versions – Applied

Status from this message: Applied, thanks. Had to hand apply as it doesn't apply to

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 2 repliesApplied
  2. v42 patches 5 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch2 repliesSuperseded
v11 patch3 repliesSuperseded

Changes in v5 from the cover letter

- return void from io_uring_cmd_mark_cancelable()
- fix one line comment on IO_URING_F_CANCEL
- remove one unnecessary warn from io_uring_try_cancel_uring_cmd()
- all are suggested from Jens

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2io_uring: retain top 8bits of uring_cmd flags for kernel internal useinclude/linux/io_uring.h include/uapi/linux/io_uring.h io_uring/io_uring.c +1 more+9 -40 replies
2/2io_uring: cancelable uring_cmdinclude/linux/io_uring.h include/linux/io_uring_types.h io_uring/io_uring.c +1 more+101 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGabriel Krisman BertaziAnuj Gupta
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH V5 0/2] io_uring: cancelable uring_cmd

Hello,

Patch 1 retains top 8bits of uring_cmd flags for kernel internal use.

Patch 2 implements cancelable uring_cmd.

git tree(with ublk change)

https://github.com/ming1/linux/commits/uring_exit_and_ublk

V5:
- return void from io_uring_cmd_mark_cancelable()
- fix one line comment on IO_URING_F_CANCEL
- remove one unnecessary warn from io_uring_try_cancel_uring_cmd()
- all are suggested from Jens

V4:
- return -EINVAL in case that internal bits are set
- replace static lock checker with lockdep_assert_held(&ctx->uring_lock);

V3:
- code style change as suggested by Jens
- add patch 1

V2:
- use ->uring_cmd() with IO_URING_F_CANCEL for canceling command

Ming Lei (2):
io_uring: retain top 8bits of uring_cmd flags for kernel internal use
io_uring: cancelable uring_cmd

 include/linux/io_uring.h       | 18 +++++++++++++
 include/linux/io_uring_types.h |  6 +++++
 include/uapi/linux/io_uring.h  |  5 ++--
 io_uring/io_uring.c            | 36 +++++++++++++++++++++++++
 io_uring/uring_cmd.c           | 49 +++++++++++++++++++++++++++++++++-
 5 files changed, 110 insertions(+), 4 deletions(-)
Signature · 1 line
2.41.0