]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix for queue-3.0/cpuset-mm-reduce-large-amounts-of-memory-barrier-related-damage...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2012 19:01:32 +0000 (12:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2012 19:01:32 +0000 (12:01 -0700)
queue-3.0/cpuset-mm-reduce-large-amounts-of-memory-barrier-related-damage-v3.patch

index 039e9e6c5e9072adf03354f07eeda438998a1dc9..37c4d6e3594e41253a8dc88d0b96ec8d6d9ce204 100644 (file)
@@ -101,9 +101,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  mm/mempolicy.c            |   28 +++++++++++++++++++-------
  mm/page_alloc.c           |   33 +++++++++++++++++++++---------
  mm/slab.c                 |   13 +++++++-----
- mm/slub.c                 |   35 +++++++++++++++++++++-----------
+ mm/slub.c                 |   36 +++++++++++++++++++++------------
  mm/vmscan.c               |    2 -
- 12 files changed, 133 insertions(+), 109 deletions(-)
+ 12 files changed, 133 insertions(+), 110 deletions(-)
 
 --- a/include/linux/cpuset.h
 +++ b/include/linux/cpuset.h
@@ -555,7 +555,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  
        /*
         * The defrag ratio allows a configuration of the tradeoffs between
-@@ -1480,22 +1481,32 @@ static struct page *get_any_partial(stru
+@@ -1480,23 +1481,32 @@ static struct page *get_any_partial(stru
                        get_cycles() % 1024 > s->remote_node_defrag_ratio)
                return NULL;
  
@@ -596,10 +596,11 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                        }
                }
 -      }
+-      put_mems_allowed();
 +      } while (!put_mems_allowed(cpuset_mems_cookie));
-       put_mems_allowed();
  #endif
        return NULL;
+ }
 --- a/mm/vmscan.c
 +++ b/mm/vmscan.c
 @@ -2251,7 +2251,6 @@ static unsigned long do_try_to_free_page