]> git.baikalelectronics.ru Git - kernel.git/commitdiff
io_uring: don't restrict issue_flags for io_openat
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:14 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Mar 2021 16:52:29 +0000 (09:52 -0700)
45d189c606292 ("io_uring: replace force_nonblock with flags") did
something strange for io_openat() slicing all issue_flags but
IO_URING_F_NONBLOCK. Not a bug for now, but better to just forward the
flags.

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

index d30cbf0f7b1c2e0f846adc4598eb06e02b6f9048..92c25b5f13497fb6acf5857f0bca6aa57f22fc5f 100644 (file)
@@ -3828,7 +3828,7 @@ err:
 
 static int io_openat(struct io_kiocb *req, unsigned int issue_flags)
 {
-       return io_openat2(req, issue_flags & IO_URING_F_NONBLOCK);
+       return io_openat2(req, issue_flags);
 }
 
 static int io_remove_buffers_prep(struct io_kiocb *req,