mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08: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 New Issue
Block a user