]> git.karo-electronics.de Git - linux-beck.git/commit
mm/rmap: Convert the struct anon_vma::mutex to an rwsem
authorIngo Molnar <mingo@kernel.org>
Sun, 2 Dec 2012 19:56:46 +0000 (19:56 +0000)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:43:00 +0000 (14:43 +0000)
commit5a505085f043e8380f83610f79642853c051e2f1
treec9e86ee196b1ef87350ee9b268a515e2eae4d307
parentd28d433512f4f387e2563c14db45a7bb8a338b1a
mm/rmap: Convert the struct anon_vma::mutex to an rwsem

Convert the struct anon_vma::mutex to an rwsem, which will help
in solving a page-migration scalability problem. (Addressed in
a separate patch.)

The conversion is simple and straightforward: in every case
where we mutex_lock()ed we'll now down_write().

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Turner <pjt@google.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
include/linux/rmap.h
mm/huge_memory.c
mm/mmap.c
mm/rmap.c