From: Ingo Molnar Date: Mon, 21 Jul 2008 15:19:50 +0000 (+0200) Subject: Merge branch 'linus' into cpus4096-for-linus X-Git-Tag: v2.6.27-rc1~848^2 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=eb6a12c2428d21a9f3e0f1a50e927d5fd80fc3d0;p=net-next-2.6.git Merge branch 'linus' into cpus4096-for-linus Conflicts: net/sunrpc/svc.c Signed-off-by: Ingo Molnar --- eb6a12c2428d21a9f3e0f1a50e927d5fd80fc3d0 diff --cc net/sunrpc/svc.c index 083d1268813,5a32cb7c4bb..835d2741308 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@@ -307,18 -307,11 +307,12 @@@ svc_pool_map_set_cpumask(struct task_st */ BUG_ON(m->count == 0); - switch (m->mode) - { - default: - return 0; + switch (m->mode) { case SVC_POOL_PERCPU: { - unsigned int cpu = m->pool_to[pidx]; - cpumask_of_cpu_ptr(cpumask, cpu); - - *oldmask = current->cpus_allowed; - set_cpus_allowed_ptr(current, cpumask); - return 1; - set_cpus_allowed_ptr(task, &cpumask_of_cpu(node)); ++ cpumask_of_cpu_ptr(cpumask, node); ++ set_cpus_allowed_ptr(task, cpumask); + break; } case SVC_POOL_PERNODE: {