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>
Sat, 28 Dec 2019 19:02:36 +0000 (12:02 -0700)
commitc81572dd4f082112c97d03b6704d91effb23a674
tree329f698051c8a99061dc62d3bdc3a8b4382c974d
parent5a3aa04b5e5afaefab5df46b09dc3fd8b6f12ffa
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