]> git.ipfire.org Git - thirdparty/linux.git/commit
svcrdma: preserve rq_next_page in svc_rdma_save_io_pages
authorChuck Lever <chuck.lever@oracle.com>
Thu, 26 Feb 2026 14:47:37 +0000 (09:47 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commit26c8e6eb759e736e254a99f727aeda7a514eaa5c
tree27cd672a9dccd4f444ffcb8a1e90730a7d678ee4
parent22cc2ba5c27a500040d13cecb1dbfc3e4bccab81
svcrdma: preserve rq_next_page in svc_rdma_save_io_pages

svc_rdma_save_io_pages() transfers response pages to the send
context and sets those slots to NULL. It then resets rq_next_page to
equal rq_respages, hiding the NULL region from
svc_rqst_release_pages().

Now that svc_rqst_release_pages() handles NULL entries, this reset
is no longer necessary. Removing it preserves the invariant that the
range [rq_respages, rq_next_page) accurately describes how many
response pages were consumed, enabling a subsequent optimization in
svc_alloc_arg() that refills only the consumed range.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_sendto.c