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: add IO_URING_EXIT_WAIT_MAX definition

Add the timeout we normally wait before complaining about things being
stuck waiting for cancelations to complete as a define, and use it in
io_ring_exit_work().

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+7 -1
+1 -1
io_uring/io_uring.c
··· 2962 2962 static __cold void io_ring_exit_work(struct work_struct *work) 2963 2963 { 2964 2964 struct io_ring_ctx *ctx = container_of(work, struct io_ring_ctx, exit_work); 2965 - unsigned long timeout = jiffies + HZ * 60 * 5; 2965 + unsigned long timeout = jiffies + IO_URING_EXIT_WAIT_MAX; 2966 2966 unsigned long interval = HZ / 20; 2967 2967 struct io_tctx_exit exit; 2968 2968 struct io_tctx_node *node;
+6
io_uring/io_uring.h
··· 88 88 IOSQE_BUFFER_SELECT |\ 89 89 IOSQE_CQE_SKIP_SUCCESS) 90 90 91 + /* 92 + * Complaint timeout for io_uring cancelation exits, and for io-wq exit 93 + * worker waiting. 94 + */ 95 + #define IO_URING_EXIT_WAIT_MAX (HZ * 60 * 5) 96 + 91 97 enum { 92 98 IOU_COMPLETE = 0, 93 99