Skip to content

Commit 5f7fc5d

Browse files
committed
SUNRPC: Resupply rq_pages from node-local memory
svc_init_buffer() is careful to allocate the initial set of server thread buffer pages from memory on the local NUMA node. svc_alloc_arg() should also be that careful. Signed-off-by: Chuck Lever <[email protected]>
1 parent 39d432f commit 5f7fc5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/sunrpc/svc_xprt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,9 @@ static int svc_alloc_arg(struct svc_rqst *rqstp)
685685
}
686686

687687
for (filled = 0; filled < pages; filled = ret) {
688-
ret = alloc_pages_bulk_array(GFP_KERNEL, pages,
689-
rqstp->rq_pages);
688+
ret = alloc_pages_bulk_array_node(GFP_KERNEL,
689+
rqstp->rq_pool->sp_id,
690+
pages, rqstp->rq_pages);
690691
if (ret > filled)
691692
/* Made progress, don't sleep yet */
692693
continue;

0 commit comments

Comments
 (0)