OSDN Git Service

io_uring: add local task_work run helper that is entered locked
authorJens Axboe <axboe@kernel.dk>
Sat, 3 Sep 2022 16:09:22 +0000 (10:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:43 +0000 (10:30 -0600)
commit8ac5d85a89b48269e5aefb92b640d38367670a1b
treec0c504bb905bc4ab2f2474f8231188763d5f09ad
parenta1119fb0711591c2aaf99be79d87ce8ebeb9d250
io_uring: add local task_work run helper that is entered locked

We have a few spots that drop the mutex just to run local task_work,
which immediately tries to grab it again. Add a helper that just passes
in whether we're locked already.

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