Skip to content

Commit

Permalink
net: Pass reference to cpumask variable in net/sunrpc/svc.c
Browse files Browse the repository at this point in the history
  * 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>
  • Loading branch information
Mike Travis authored and Thomas Gleixner committed May 23, 2008
1 parent cad0e45 commit 3f9b48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f9b48a

Please sign in to comment.