[Devel] [PATCH hci-8.1 3/3] fs/fuse kio: refactor receive path in pcs_sockio_recv()

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Wed Sep 30 10:42:48 MSK 2026


> The receive path consumes data one 4k page per kernel_recvmsg() call:
> do_recv_one_seg() extracts a single page from the iov_iter, kmaps it
> and receives into it, so a 1M message body costs up to 256 recvmsg
> calls plus a page reference and kmap/kunmap per page.
> 
> Replace do_recv_one_seg() with do_sockio_recvmsg(), the receive twin
> of do_sockio_sendmsg(): hand the whole remaining iov_iter to
> sock_recvmsg() and let it drain everything available in one call.
> The header read goes through the same helper too, replacing
> do_sock_recv(), so the whole receive path now uses one recv primitive.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-142167
> 
> Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20260930-sockio-refactor-8-1-v1-0-806348b9eb26@virtuozzo.com?part=3




More information about the Devel mailing list