io_uring: process task work in io_uring_register()
authorJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:32:18 +0000 (13:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:32:34 +0000 (20:32 -0600)
commitaf9c1a44f8dee7a958e07977f24ba40e3c770987
tree7a38455dbeb05d0cf7efe7b125656c07a582308b
parent91d8f5191e8fe6fc6a87aa5353b36f5a7409fbec
io_uring: process task work in io_uring_register()

We do this for CQ ring wait, in case task_work completions come in. We
should do the same in io_uring_register(), to avoid spurious -EINTR
if the ring quiescing ends up having to process task_work to complete
the operation

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