io-wq: add support for uncancellable work
authorJens Axboe <axboe@kernel.dk>
Thu, 12 Dec 2019 02:29:43 +0000 (19:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 Jan 2020 17:12:25 +0000 (10:12 -0700)
commitf13d26e8e364a79720c66f8b75f8938899226144
tree97f44fcc6f1043bf561b5568dc624879b04f40b4
parentc47b2b7c1fba6f5b08f6d18bab569920dd649b8c
io-wq: add support for uncancellable work

Not all work can be cancelled, some of it we may need to guarantee
that it runs to completion. Allow the caller to set IO_WQ_WORK_NO_CANCEL
on work that must not be cancelled. Note that the caller work function
must also check for IO_WQ_WORK_NO_CANCEL on work that is marked
IO_WQ_WORK_CANCEL.

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