OSDN Git Service

io_uring: improve send/recv error handling
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 23 Nov 2021 00:07:47 +0000 (00:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 23 Nov 2021 19:24:20 +0000 (12:24 -0700)
commit7297ce3d59449de49d3c9e1f64ae25488750a1fc
treea0ad2db82e70151b854e0d8e382f168e3630e588
parent06bdea20c1076471f7ab7d3ad7f35cbcbd59a8e3
io_uring: improve send/recv error handling

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>
fs/io_uring.c