summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-11 19:29:43 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-20 17:01:53 -0700
commit0c9d5ccd26a004f59333c06fbbb98f9cb1eed93d (patch)
tree44cdf8ba1137666d0194c3fbe2d995d2138fa456 /fs/io-wq.h
parent6e802a4ba056a6f2f51ac9d54eead3ed6f9829a2 (diff)
downloadlinux-0c9d5ccd26a004f59333c06fbbb98f9cb1eed93d.tar.bz2
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>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r--fs/io-wq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h
index 3f5e356de980..04d60ad38dfc 100644
--- a/fs/io-wq.h
+++ b/fs/io-wq.h
@@ -12,6 +12,7 @@ enum {
IO_WQ_WORK_UNBOUND = 32,
IO_WQ_WORK_INTERNAL = 64,
IO_WQ_WORK_CB = 128,
+ IO_WQ_WORK_NO_CANCEL = 256,
IO_WQ_HASH_SHIFT = 24, /* upper 8 bits are used for hash key */
};