mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04: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
1 changed files with 3 additions and 2 deletions
|
@ -685,8 +685,9 @@ static int svc_alloc_arg(struct svc_rqst *rqstp)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (filled = 0; filled < pages; filled = ret) {
|
for (filled = 0; filled < pages; filled = ret) {
|
||||||
ret = alloc_pages_bulk_array(GFP_KERNEL, pages,
|
ret = alloc_pages_bulk_array_node(GFP_KERNEL,
|
||||||
rqstp->rq_pages);
|
rqstp->rq_pool->sp_id,
|
||||||
|
pages, rqstp->rq_pages);
|
||||||
if (ret > filled)
|
if (ret > filled)
|
||||||
/* Made progress, don't sleep yet */
|
/* Made progress, don't sleep yet */
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue