io_uring: simplify io_file_supports_nowait()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 16 Oct 2021 23:07:10 +0000 (00:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:56 +0000 (05:49 -0600)
commit88459b50b42a4bd58e528006663afabd0b8652f2
tree27772501a155d0e3cbabf95ab9cec0a2c9a689a5
parent35645ac3c1853fbb54d8acd50fd12184f7905d5f
io_uring: simplify io_file_supports_nowait()

Make sure that REQ_F_SUPPORT_NOWAIT is always set io_prep_rw(), and so
we can stop caring about setting it down the line simplifying
io_file_supports_nowait().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/60c8f1f5e2cb45e00f4897b2cec10c5b3669da91.1634425438.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c