aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index d43cf8ddff67..083d12688134 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -314,9 +314,10 @@ svc_pool_map_set_cpumask(unsigned int pidx, cpumask_t *oldmask)
314 case SVC_POOL_PERCPU: 314 case SVC_POOL_PERCPU:
315 { 315 {
316 unsigned int cpu = m->pool_to[pidx]; 316 unsigned int cpu = m->pool_to[pidx];
317 cpumask_of_cpu_ptr(cpumask, cpu);
317 318
318 *oldmask = current->cpus_allowed; 319 *oldmask = current->cpus_allowed;
319 set_cpus_allowed_ptr(current, &cpumask_of_cpu(cpu)); 320 set_cpus_allowed_ptr(current, cpumask);
320 return 1; 321 return 1;
321 } 322 }
322 case SVC_POOL_PERNODE: 323 case SVC_POOL_PERNODE: