]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/net: improve zc addr import error handling
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Aug 2022 12:42:01 +0000 (13:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Aug 2022 03:34:00 +0000 (21:34 -0600)
commitf1215a90e821ac0734bfbc8f9f5f3bc0e01f074f
tree603ec1a221fecba1ac211d71b7a36013d86b9f7a
parent68e39f4214a13769e06922827481388261e1937b
io_uring/net: improve zc addr import error handling

We may account memory to a memcg of a request that didn't even got to
the network layer. It's not a bug as it'll be routinely cleaned up on
flush, but it might be confusing for the userspace.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b8aae61f4c3ddc4da97c1da876bb73871f352d50.1660566179.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c