mirror of
https://github.com/torvalds/linux
synced 2024-09-06 09:51:23 +00:00
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 <chuck.lever@oracle.com>
This commit is contained in:
parent
39d432fc76
commit
5f7fc5d69f
|
@ -685,8 +685,9 @@ static int svc_alloc_arg(struct svc_rqst *rqstp)
|
|||
}
|
||||
|
||||
for (filled = 0; filled < pages; filled = ret) {
|
||||
ret = alloc_pages_bulk_array(GFP_KERNEL, pages,
|
||||
rqstp->rq_pages);
|
||||
ret = alloc_pages_bulk_array_node(GFP_KERNEL,
|
||||
rqstp->rq_pool->sp_id,
|
||||
pages, rqstp->rq_pages);
|
||||
if (ret > filled)
|
||||
/* Made progress, don't sleep yet */
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue