diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-03-12 08:30:14 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-11 17:41:58 -0600 |
commit | 7b29f92da377c358955b522045d0778aa79a540a (patch) | |
tree | 454cb092a6ba84d253ed1bb65dc86642479f5099 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d44f554e105b0c20e5b06b9f821bef228e04d573 (diff) |
io_uring: cache async and regular file state for fixed files
We have to dig quite deep to check for particularly whether or not a
file supports a fast-path nonblock attempt. For fixed files, we can do
this lookup once and cache the state instead.
This adds two new bits to track whether we support async read/write
attempt, and lines up the REQ_F_ISREG bit with those two. The file slot
re-uses the last 3 (or 2, for 32-bit) of the file pointer to cache that
state, and then we mask it in when we go and use a fixed file.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions