]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 21 Jan 2020 00:01:53 +0000 (17:01 -0700)
commit3fcde505be3171ebbbd01a5d3fabe4ca55c69f64
tree44cdf8ba1137666d0194c3fbe2d995d2138fa456
parentf955939da84a296142e609975d8ffa40004f4a8c
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