OSDN Git Service

io_uring: use io-wq manager as backup task if task is exiting
authorJens Axboe <axboe@kernel.dk>
Fri, 3 Apr 2020 17:26:26 +0000 (11:26 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Apr 2020 17:35:57 +0000 (11:35 -0600)
commitaa96bf8a9ee33457b7e3ea43e97dfa1e3a15ab20
treea3ba2c7171210464132794274827829d17dd15b4
parent3537b6a7c65434d0d2cc0c9862e69be11c367fdc
io_uring: use io-wq manager as backup task if task is exiting

If the original task is (or has) exited, then the task work will not get
queued properly. Allow for using the io-wq manager task to queue this
work for execution, and ensure that the io-wq manager notices and runs
this work if woken up (or exiting).

Reported-by: Dan Melnic <dmm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io-wq.h
fs/io_uring.c