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)
commit86dc8f23bb1b68262ca5db890ec7177b2d074640
tree603ec1a221fecba1ac211d71b7a36013d86b9f7a
parent063604265f967e90901996a1b173fe6df582d350
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