commit | bd5bbda72f7fa013ddea0ff7c4d91daedb821869 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Fri Nov 20 15:50:51 2020 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Dec 09 12:04:01 2020 -0700 |
tree | 0015681228d97bacae9546fa04257b0f7eda2b83 | |
parent | 6e1271e60c1d5e822fd1a32a56d52d9ae1823e62 [diff] |
io_uring: fix miscounting ios_left io_req_init() doesn't decrement state->ios_left if a request doesn't need ->file, it just returns before that on if(!needs_file). That's not really a problem but may cause overhead for an additional fput(). Also inline and kill io_req_set_file() as it's of no use anymore. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>