]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: recycle buffers on error
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 09:12:23 +0000 (02:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:16 +0000 (18:39 -0600)
commitcab8264142ef5a0c05e6a5c7612108aaf4c989f5
treef7d41b67c60f1670d70149802b7b8a6a2d271299
parentdc4ae31d071735d2aa87b23ab0e4cf3c462154a3
io_uring: recycle buffers on error

Rather than passing an error back to the user with a buffer attached,
recycle the buffer immediately.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630091231.1456789-5-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c