Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39315
b: refs/heads/master
c: 4693402
h: refs/heads/master
i:
  39313: b27fdf6
  39311: a02022b
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Oct 11, 2006
1 parent e267623 commit ff11d79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc513a333b45f8913d40c8241a0cb61be79e1c60
refs/heads/master: 469340236a7c9673df3e6a2425f559517f01464e
7 changes: 7 additions & 0 deletions trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/notifier.h>
#include <linux/kthread.h>
#include <linux/hardirq.h>
#include <linux/mempolicy.h>

/*
* The per-CPU workqueue (if single thread, we always use the first
Expand Down Expand Up @@ -245,6 +246,12 @@ static int worker_thread(void *__cwq)
sigprocmask(SIG_BLOCK, &blocked, NULL);
flush_signals(current);

/*
* We inherited MPOL_INTERLEAVE from the booting kernel.
* Set MPOL_DEFAULT to insure node local allocations.
*/
numa_default_policy();

/* SIG_IGN makes children autoreap: see do_notify_parent(). */
sa.sa.sa_handler = SIG_IGN;
sa.sa.sa_flags = 0;
Expand Down

0 comments on commit ff11d79

Please sign in to comment.