Hello Jens, The 1st patch adds helper io_uring_cmd_ctx_handle(). The 2nd one use the added helper to run auto-buf-unreg on the same io_uring_ctx with the register one. Thanks, Ming V2: - return `void *` from io_uring_cmd_ctx_handle() (Caleb Sander Mateos) - typo & document fix (Caleb Sander Mateos) Ming Lei (2): io_uring: add helper io_uring_cmd_ctx_handle() ublk: run auto buf unregisgering in same io_ring_ctx with registering drivers/block/ublk_drv.c | 19 ++++++++++++++++--- include/linux/io_uring/cmd.h | 9 +++++++++ include/uapi/linux/ublk_cmd.h | 6 +++++- 3 files changed, 30 insertions(+), 4 deletions(-) -- 2.47.0