]> git.itanic.dy.fi Git - linux-stable/commit
io_uring: use private workqueue for exit work
authorJens Axboe <axboe@kernel.dk>
Mon, 1 Apr 2024 21:16:19 +0000 (15:16 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:16 +0000 (16:38 +0200)
commite716bf33a07b5a4f22b77235ddebc08017e81e20
tree4fcb01f15c0034c6b39c923bdd8511e7bea255b4
parent7dc1ed215b07d9ea06cb1bb1b42f803d8cb1a2a9
io_uring: use private workqueue for exit work

commit 73eaa2b583493b680c6f426531d6736c39643bfb upstream.

Rather than use the system unbound event workqueue, use an io_uring
specific one. This avoids dependencies with the tty, which also uses
the system_unbound_wq, and issues flushes of said workqueue from inside
its poll handling.

Cc: stable@vger.kernel.org
Reported-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Tested-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Tested-by: Iskren Chernev <me@iskren.info>
Link: https://github.com/axboe/liburing/issues/1113
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c