From: Mike Travis Date: Mon, 12 May 2008 19:21:13 +0000 (+0200) Subject: net: Pass reference to cpumask variable in net/sunrpc/svc.c X-Git-Tag: v2.6.27-rc1~848^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f9b48a7584851997702cdc3f58e7811b5546397;p=karo-tx-linux.git 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- 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, error = kernel_thread((int (*)(void *)) func, rqstp, 0); if (have_oldmask) - set_cpus_allowed(current, oldmask); + set_cpus_allowed_ptr(current, &oldmask); if (error < 0) goto out_thread;