]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix SQPOLL thread handling over exec
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Feb 2021 17:17:46 +0000 (10:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Feb 2021 17:17:46 +0000 (10:17 -0700)
commit2ac4a1c3b7287c83c5575b3e20e86a4a71fe232b
treec59b47f09b3733be15220c701bbf8ea08d138854
parentfb789ee53872d0d20fe9acba26ef71e9b401daf3
io_uring: fix SQPOLL thread handling over exec

Just like the changes for io-wq, ensure that we re-fork the SQPOLL
thread if the owner execs. Mark the ctx sq thread as sqo_exec if
it dies, and the ring as needing a wakeup which will force the task
to enter the kernel. When it does, setup the new thread and proceed
as usual.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c