net: Pass reference to cpumask variable in net/sunrpc/svc.c
authorMike Travis <travis@sgi.com>
Mon, 12 May 2008 19:21:13 +0000 (21:21 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 16:44:36 +0000 (18:44 +0200)
  * 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>
net/sunrpc/svc.c

index 01c7e31..d43cf8d 100644 (file)
@@ -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;