io_uring: ensure we can nest attempts to park SQPOLl thread
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Sep 2020 15:46:31 +0000 (09:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 10:58:49 +0000 (04:58 -0600)
commit3767fd37863d029e0534917368c8cd8c6d1de4a7
treeb399bbe69cc805e38c68e8f8b263851d51c38a5b
parent1174ea22392f7a5dd87a883af534439d8a2b2555
io_uring: ensure we can nest attempts to park SQPOLl thread

Since we can now share it, we need to be careful that we nest parks
properly. Otherwise we can hit spew from kthread on attempting to park
and already parked thread.

Protect parking with a mutex, so new parkers get to wait in line.

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