diff options
author | Mike Travis <travis@sgi.com> | 2008-05-12 15:21:13 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 12:44:36 -0400 |
commit | 3f9b48a7584851997702cdc3f58e7811b5546397 (patch) | |
tree | 629deaa7874ca91b72d4b726df4f8f42038a398e | |
parent | cad0e458d17c643c20c1d38f45a1d26125e6a622 (diff) |
net: Pass reference to cpumask variable in net/sunrpc/svc.c
* Pass reference to cpumask variable instead of using stack.
For inclusion into sched-devel/latest tree.
Based on:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
+ sched-devel/latest .../mingo/linux-2.6-sched-devel.git
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | net/sunrpc/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 01c7e311b904..d43cf8ddff67 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -603,7 +603,7 @@ __svc_create_thread(svc_thread_fn func, struct svc_serv *serv, | |||
603 | error = kernel_thread((int (*)(void *)) func, rqstp, 0); | 603 | error = kernel_thread((int (*)(void *)) func, rqstp, 0); |
604 | 604 | ||
605 | if (have_oldmask) | 605 | if (have_oldmask) |
606 | set_cpus_allowed(current, oldmask); | 606 | set_cpus_allowed_ptr(current, &oldmask); |
607 | 607 | ||
608 | if (error < 0) | 608 | if (error < 0) |
609 | goto out_thread; | 609 | goto out_thread; |