]> 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)
commit072086f6d78a8859d6c726cc2957eb2a1d498684
treeca4c7e7144531e70dd0fd3781430922fcad5bfa0
parente2bc2e74d2277c96e4e362f105154b0437dfa388
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: faf255c5a6bb ("io_uring: move SQPOLL thread io-wq forked worker")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c