io_uring: check for iowq alloc_workqueue failure
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 31 Jan 2025 17:28:21 +0000 (17:28 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Feb 2025 19:45:41 +0000 (12:45 -0700)
commit75477e16149acc268029ff34775da2ae964d2aee
treed3581af59e88160f1ee5c6151a604458d233efc6
parent90dda4f794c0e15a28e432545f233e0aa669eabc
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>
io_uring/io_uring.c