summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-02-28 23:35:14 +0100
committerJens Axboe <axboe@kernel.dk>2021-03-05 17:52:29 +0100
commite45cff58858883290c98f65d409839a7295c95f3 (patch)
treed0fa0a56d112da38fb5d3e50ee2aaea265472a8c /fs/io_uring.c
parentio_uring: make SQPOLL thread parking saner (diff)
downloadlinux-e45cff58858883290c98f65d409839a7295c95f3.tar.xz
linux-e45cff58858883290c98f65d409839a7295c95f3.zip
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 <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index d30cbf0f7b1c..92c25b5f1349 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,