Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: use IO_REQ_LINK_FLAGS more

Replace the 2 instances of REQ_F_LINK | REQ_F_HARDLINK with
the more commonly used IO_REQ_LINK_FLAGS.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250211202002.3316324-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Caleb Sander Mateos and committed by
Jens Axboe
0e893472 7c71a0af

+4 -3
+4 -3
io_uring/io_uring.c
··· 110 110 #define SQE_VALID_FLAGS (SQE_COMMON_FLAGS | IOSQE_BUFFER_SELECT | \ 111 111 IOSQE_IO_DRAIN | IOSQE_CQE_SKIP_SUCCESS) 112 112 113 + #define IO_REQ_LINK_FLAGS (REQ_F_LINK | REQ_F_HARDLINK) 114 + 113 115 #define IO_REQ_CLEAN_FLAGS (REQ_F_BUFFER_SELECTED | REQ_F_NEED_CLEANUP | \ 114 116 REQ_F_POLLED | REQ_F_INFLIGHT | REQ_F_CREDS | \ 115 117 REQ_F_ASYNC_DATA) 116 118 117 - #define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | REQ_F_LINK | REQ_F_HARDLINK |\ 119 + #define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | IO_REQ_LINK_FLAGS | \ 118 120 REQ_F_REISSUE | IO_REQ_CLEAN_FLAGS) 119 121 120 122 #define IO_TCTX_REFS_CACHE_NR (1U << 10) ··· 133 131 134 132 /* requests with any of those set should undergo io_disarm_next() */ 135 133 #define IO_DISARM_MASK (REQ_F_ARM_LTIMEOUT | REQ_F_LINK_TIMEOUT | REQ_F_FAIL) 136 - #define IO_REQ_LINK_FLAGS (REQ_F_LINK | REQ_F_HARDLINK) 137 134 138 135 /* 139 136 * No waiters. It's larger than any valid value of the tw counter ··· 1158 1157 * We don't know how many reuqests is there in the link and whether 1159 1158 * they can even be queued lazily, fall back to non-lazy. 1160 1159 */ 1161 - if (req->flags & (REQ_F_LINK | REQ_F_HARDLINK)) 1160 + if (req->flags & IO_REQ_LINK_FLAGS) 1162 1161 flags &= ~IOU_F_TWQ_LAZY_WAKE; 1163 1162 1164 1163 guard(rcu)();