diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-20 13:32:31 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-20 09:36:22 -0600 |
commit | 3beed235d1a1d0a4ab093ab67ea6b2841e9d4fa2 (patch) | |
tree | 3b9af55d49cc0681b4a195c8c9a142a5ff1e1ec8 /io_uring/io_uring.c | |
parent | b57c7cd1c17616ae9db5614525ba703f384afd05 (diff) | |
download | lwn-3beed235d1a1d0a4ab093ab67ea6b2841e9d4fa2.tar.gz lwn-3beed235d1a1d0a4ab093ab67ea6b2841e9d4fa2.zip |
io_uring: remove io_req_ffs_set
Just checking the flag directly makes it a lot more obvious what is
going on here.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230620113235.920399-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 79f3cabec5b9..0e0bdb6ac9a2 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -424,7 +424,7 @@ static void io_prep_async_work(struct io_kiocb *req) if (req->flags & REQ_F_FORCE_ASYNC) req->work.flags |= IO_WQ_WORK_CONCURRENT; - if (req->file && !io_req_ffs_set(req)) + if (req->file && !(req->flags & REQ_F_FIXED_FILE)) req->flags |= io_file_get_flags(req->file) << REQ_F_SUPPORT_NOWAIT_BIT; if (req->file && (req->flags & REQ_F_ISREG)) { |