]> asedeno.scripts.mit.edu Git - linux.git/commit
io_uring: Fix getting file for non-fd opcodes
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 13 Nov 2019 21:11:01 +0000 (00:11 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2019 02:41:01 +0000 (19:41 -0700)
commita320e9fa1e2680116d165b9369dfa41d7cc1e1d1
tree5de70c13342c856129f9bb25f5a03ce0450a72c4
parent9d858b21483981db9c0cb4b184d4cdeb4bc525c2
io_uring: Fix getting file for non-fd opcodes

For timeout requests and bunch of others io_uring tries to grab a file
with specified fd, which is usually stdin/fd=0.
Update io_op_needs_file()

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c