]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure async buffered read-retry is setup properly
authorJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 21:23:43 +0000 (15:23 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 21:39:13 +0000 (15:39 -0600)
commite9be7f468b5d2b2c1b95dbc954ac0d17ec5ada08
tree140780e14b4a3550f664f69c5c8f78dbba861aab
parent74bb568fcbc8c696cce1bb52280bd1339230f52b
io_uring: ensure async buffered read-retry is setup properly

A previous commit for fixing up short reads botched the async retry
path, so we ended up going to worker threads more often than we should.
Fix this up, so retries work the way they originally were intended to.

Fixes: 1fa9de55d2c2 ("io_uring: internally retry short reads")
Reported-by: Hao_Xu <haoxu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c