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)
commit5f3f26f98ae484a3e187411f9ea8c88c00a65ffc
treec59b47f09b3733be15220c701bbf8ea08d138854
parent4fb6ac326204b3ab81e6e7a914ccd44d957c1d2c
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