From: Pavel Begunkov Date: Sun, 28 Feb 2021 22:35:14 +0000 (+0000) Subject: io_uring: don't restrict issue_flags for io_openat X-Git-Tag: v5.15~1586^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e45cff58858883290c98f65d409839a7295c95f3;p=platform%2Fkernel%2Flinux-starfive.git io_uring: don't restrict issue_flags for io_openat 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 Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index d30cbf0..92c25b5 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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,