diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-07-25 11:52:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-25 17:48:25 +0200 |
commit | 6a9ce66f4d0872861e0bbc67eee6ce5dca5dd886 (patch) | |
tree | 81e66222f137d24bf38d367a9d29d4e91c6dd6c5 /io_uring/net.c | |
parent | io_uring/net: checks errors of zc mem accounting (diff) | |
download | linux-6a9ce66f4d0872861e0bbc67eee6ce5dca5dd886.tar.xz linux-6a9ce66f4d0872861e0bbc67eee6ce5dca5dd886.zip |
io_uring/net: make page accounting more consistent
Make network page accounting more consistent with how buffer
registration is working, i.e. account all memory to ctx->user.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4aacfe64bbb81b27f9ecf5d5c219c69a07e5aa56.1658742118.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/net.c')
-rw-r--r-- | io_uring/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/net.c b/io_uring/net.c index 8fb8469c3315..c13d971c7826 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -985,7 +985,7 @@ int io_sendzc(struct io_kiocb *req, unsigned int issue_flags) &msg.msg_iter); if (unlikely(ret)) return ret; - ret = mm_account_pinned_pages(¬if->uarg.mmp, zc->len); + ret = io_notif_account_mem(notif, zc->len); if (unlikely(ret)) return ret; } |