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: check for iowq alloc_workqueue failure

alloc_workqueue() can fail even during init in io_uring_init(), check
the result and panic if anything went wrong.

Fixes: 73eaa2b583493 ("io_uring: use private workqueue for exit work")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3a046063902f888f66151f89fa42f84063b9727b.1738343083.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
72154696 40b99183

+1
+1
io_uring/io_uring.c
··· 3920 3920 SLAB_HWCACHE_ALIGN | SLAB_PANIC | SLAB_ACCOUNT); 3921 3921 3922 3922 iou_wq = alloc_workqueue("iou_exit", WQ_UNBOUND, 64); 3923 + BUG_ON(!iou_wq); 3923 3924 3924 3925 #ifdef CONFIG_SYSCTL 3925 3926 register_sysctl_init("kernel", kernel_io_uring_disabled_table);