io_uring: don't restrict issue_flags for io_openat

45d189c606 ("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>
This commit is contained in:
Pavel Begunkov 2021-02-28 22:35:14 +00:00 committed by Jens Axboe
parent 86e0d6766c
commit e45cff5885

View 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,