]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't use complete_all() on SQPOLL thread exit
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Feb 2021 20:46:49 +0000 (13:46 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Mar 2021 13:34:04 +0000 (06:34 -0700)
commit50d9e11875ae01ddf10bdb908ccc83de54feb564
treeca4c7e7144531e70dd0fd3781430922fcad5bfa0
parent6915bc718daed35ae8cc35368d6812819129ed45
io_uring: don't use complete_all() on SQPOLL thread exit

We want to reuse this completion, and a single complete should do just
fine. Ensure that we park ourselves first if requested, as that is what
lead to the initial deadlock in this area. If we've got someone attempting
to park us, then we can't proceed without having them finish first.

Fixes: 754787595654 ("io_uring: move SQPOLL thread io-wq forked worker")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c