aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-09-24 17:14:48 +0100
committerJens Axboe <axboe@kernel.dk>2021-09-24 10:26:11 -0600
commit9f3a2cb228c28606895d15f13b30d1f7402dc745 (patch)
tree76602f0f4908a3140641ee9836b9b7faa5c731f7 /fs/io-wq.c
parentio_uring: don't punt files update to io-wq unconditionally (diff)
downloadwireguard-linux-9f3a2cb228c28606895d15f13b30d1f7402dc745.tar.xz
wireguard-linux-9f3a2cb228c28606895d15f13b30d1f7402dc745.zip
io_uring: kill extra checks in io_write()
We don't retry short writes and so we would never get to async setup in io_write() in that case. Thus ret2 > 0 is always false and iov_iter_advance() is never used. Apparently, the same is found by Coverity, which complains on the code. Fixes: cd65869512ab ("io_uring: use iov_iter state save/restore helpers") Reported-by: Dave Jones <davej@codemonkey.org.uk> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/5b33e61034748ef1022766efc0fb8854cfcf749c.1632500058.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions