]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: retry early for reads if we can poll
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Mar 2022 23:46:07 +0000 (16:46 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Mar 2022 16:45:57 +0000 (09:45 -0700)
commit1b00ebce8345ab85ea9a7425abff3d277282d4b6
treeb1fb630dc31f45bfce11595af171c49576288d8b
parent851dcbc2bdeeb1f15b9e23c3a143516f38a27d7a
io_uring: retry early for reads if we can poll

Most of the logic in io_read() deals with regular files, and in some ways
it would make sense to split the handling into S_IFREG and others. But
at least for retry, we don't need to bother setting up a bunch of state
just to abort in the loop later. In particular, don't bother forcing
setup of async data for a normal non-vectored read when we don't need it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c