diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-10-14 17:23:55 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-17 17:25:45 +0200 |
commit | 0f203765880c4416675726be558b65da4a7604e2 (patch) | |
tree | d21553bb56e1b822a2dafa8718a0bfa3f78f695f /fs/io-wq.h | |
parent | io-wq: assign NUMA node locality if appropriate (diff) | |
download | linux-0f203765880c4416675726be558b65da4a7604e2.tar.xz linux-0f203765880c4416675726be558b65da4a7604e2.zip |
io_uring: pass required context in as flags
We have a number of bits that decide what context to inherit. Set up
io-wq flags for these instead. This is in preparation for always having
the various members set, but not always needing them for all requests.
No intended functional changes in this patch.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index 84bcf6a85523..31a29023605a 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -10,6 +10,12 @@ enum { IO_WQ_WORK_NO_CANCEL = 8, IO_WQ_WORK_CONCURRENT = 16, + IO_WQ_WORK_FILES = 32, + IO_WQ_WORK_FS = 64, + IO_WQ_WORK_MM = 128, + IO_WQ_WORK_CREDS = 256, + IO_WQ_WORK_BLKCG = 512, + IO_WQ_HASH_SHIFT = 24, /* upper 8 bits are used for hash key */ }; |