]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up queue-3.0/cpuset-mm-reduce-large-amounts-of-memory-barrier-related-damage...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jul 2012 17:18:44 +0000 (10:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jul 2012 17:18:44 +0000 (10:18 -0700)
queue-3.0/cpuset-mm-reduce-large-amounts-of-memory-barrier-related-damage-v3.patch

index 37c4d6e3594e41253a8dc88d0b96ec8d6d9ce204..36530774514e59b9ad850d477506adb0f945b7c4 100644 (file)
@@ -91,23 +91,23 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 
 ---
- include/linux/cpuset.h    |   49 ++++++++++++++++++----------------------------
+ include/linux/cpuset.h    |   51 +++++++++++++++++++---------------------------
  include/linux/init_task.h |    8 +++++++
  include/linux/sched.h     |    2 -
- kernel/cpuset.c           |   43 +++++++---------------------------------
+ kernel/cpuset.c           |   43 +++++++-------------------------------
  kernel/fork.c             |    3 ++
- mm/filemap.c              |   11 ++++++----
- mm/hugetlb.c              |   15 ++++++++++----
- mm/mempolicy.c            |   28 +++++++++++++++++++-------
- mm/page_alloc.c           |   33 +++++++++++++++++++++---------
- mm/slab.c                 |   13 +++++++-----
- mm/slub.c                 |   36 +++++++++++++++++++++------------
+ mm/filemap.c              |   11 ++++++---
+ mm/hugetlb.c              |   15 +++++++++----
+ mm/mempolicy.c            |   28 ++++++++++++++++++-------
+ mm/page_alloc.c           |   33 ++++++++++++++++++++---------
+ mm/slab.c                 |   13 +++++++----
+ mm/slub.c                 |   36 ++++++++++++++++++++------------
  mm/vmscan.c               |    2 -
- 12 files changed, 133 insertions(+), 110 deletions(-)
+ 12 files changed, 135 insertions(+), 110 deletions(-)
 
 --- a/include/linux/cpuset.h
 +++ b/include/linux/cpuset.h
-@@ -89,36 +89,25 @@ extern void rebuild_sched_domains(void);
+@@ -89,42 +89,33 @@ extern void rebuild_sched_domains(void);
  extern void cpuset_print_task_mems_allowed(struct task_struct *p);
  
  /*
@@ -160,7 +160,15 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  }
  
  static inline void set_mems_allowed(nodemask_t nodemask)
-@@ -234,12 +223,14 @@ static inline void set_mems_allowed(node
+ {
+       task_lock(current);
++      write_seqcount_begin(&current->mems_allowed_seq);
+       current->mems_allowed = nodemask;
++      write_seqcount_end(&current->mems_allowed_seq);
+       task_unlock(current);
+ }
+@@ -234,12 +225,14 @@ static inline void set_mems_allowed(node
  {
  }