]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: combine REQ_F_NOWAIT_{READ,WRITE} flags
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 16 Oct 2021 23:07:09 +0000 (00:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:56 +0000 (05:49 -0600)
commit48868644c57784a4ffbb50757e8b4547d063882c
tree7a4d7864b9c7e49d6312f6b0a4053973e5d80e1a
parent4ac7668c4739dcb5d5d91abb55f7273cf5774593
io_uring: combine REQ_F_NOWAIT_{READ,WRITE} flags

Merge REQ_F_NOWAIT_READ and REQ_F_NOWAIT_WRITE into one flag, i.e.
REQ_F_SUPPORT_NOWAIT. First it gets rid of dependence on CONFIG_64BIT
but also simplifies the code.

One thing to consider is when we don't have ->{read,write}_iter and go
through loop_rw_iter(). Just fail it with -EAGAIN if we expect nowait
behaviour but not sure whether it supports it.

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