diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-10-14 09:23:55 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-17 09:25:45 -0600 |
commit | 0f203765880c4416675726be558b65da4a7604e2 (patch) | |
tree | d21553bb56e1b822a2dafa8718a0bfa3f78f695f /fs/io-wq.h | |
parent | a8b595b22d31f83b715511f59012f152a269d83b (diff) |
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 */ }; |