io_uring: improve send/recv error handling
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 23 Nov 2021 00:07:47 +0000 (00:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:22:43 +0000 (07:22 +0100)
commitcdc68e714d0b788bae35c227e33aeefaf7fa4e53
tree18152129c440bc6070aeacd71b906feac6cfc226
parentccf06b5a981c734585b531569b078cd727251639
io_uring: improve send/recv error handling

commit 7297ce3d59449de49d3c9e1f64ae25488750a1fc upstream.

Hide all error handling under common if block, removes two extra ifs on
the success path and keeps the handling more condensed.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5761545158a12968f3caf30f747eea65ed75dfc1.1637524285.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c