diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-01-29 13:46:44 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-29 13:46:44 -0700 |
commit | f86cd20c9454847a524ddbdcdec32c0380ed7c9b (patch) | |
tree | c6f996fd423f2793fe0aba28e1a0b7b4f98dc3aa /fs/io-wq.h | |
parent | 75c6a03904e0dd414a4d99a3072075cb5117e5bc (diff) | |
download | linux-f86cd20c9454847a524ddbdcdec32c0380ed7c9b.tar.bz2 |
io_uring: fix linked command file table usage
We're not consistent in how the file table is grabbed and assigned if we
have a command linked that requires the use of it.
Add ->file_table to the io_op_defs[] array, and use that to determine
when to grab the table instead of having the handlers set it if they
need to defer. This also means we can kill the IO_WQ_WORK_NEEDS_FILES
flag. We always initialize work->files, so io-wq can just check for
that.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index c42602c58c56..50b3378febf2 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -7,7 +7,6 @@ enum { IO_WQ_WORK_CANCEL = 1, IO_WQ_WORK_HAS_MM = 2, IO_WQ_WORK_HASHED = 4, - IO_WQ_WORK_NEEDS_FILES = 16, IO_WQ_WORK_UNBOUND = 32, IO_WQ_WORK_INTERNAL = 64, IO_WQ_WORK_CB = 128, |