Skip to content

Commit 9690557

Browse files
isilenceaxboe
authored andcommitted
io_uring: add feature flag for rsrc tags
Add IORING_FEAT_RSRC_TAGS indicating that io_uring supports a bunch of new IORING_REGISTER operations, in particular IORING_REGISTER_[FILES[,UPDATE]2,BUFFERS[2,UPDATE]] that support rsrc tagging, and also indicating implemented dynamic fixed buffer updates. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/9b995d4045b6c6b4ab7510ca124fd25ac2203af7.1623339162.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 992da01 commit 9690557

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fs/io_uring.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9676,7 +9676,8 @@ static int io_uring_create(unsigned entries, struct io_uring_params *p,
96769676
IORING_FEAT_SUBMIT_STABLE | IORING_FEAT_RW_CUR_POS |
96779677
IORING_FEAT_CUR_PERSONALITY | IORING_FEAT_FAST_POLL |
96789678
IORING_FEAT_POLL_32BITS | IORING_FEAT_SQPOLL_NONFIXED |
9679-
IORING_FEAT_EXT_ARG | IORING_FEAT_NATIVE_WORKERS;
9679+
IORING_FEAT_EXT_ARG | IORING_FEAT_NATIVE_WORKERS |
9680+
IORING_FEAT_RSRC_TAGS;
96809681

96819682
if (copy_to_user(params, p, sizeof(*p))) {
96829683
ret = -EFAULT;

include/uapi/linux/io_uring.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ struct io_uring_params {
280280
#define IORING_FEAT_SQPOLL_NONFIXED (1U << 7)
281281
#define IORING_FEAT_EXT_ARG (1U << 8)
282282
#define IORING_FEAT_NATIVE_WORKERS (1U << 9)
283+
#define IORING_FEAT_RSRC_TAGS (1U << 10)
283284

284285
/*
285286
* io_uring_register(2) opcodes and arguments

0 commit comments

Comments
 (0)