Revision 4a23717a236b2ab31efb1651f586126789fc997f authored by Davidlohr Bueso on 13 December 2014, 00:54:30 UTC, committed by Linus Torvalds on 13 December 2014, 20:42:45 UTC
Both register and unregister call build_map_info() in order to create the list of mappings before installing or removing breakpoints for every mm which maps file backed memory. As such, there is no reason to hold the i_mmap_rwsem exclusively, so share it and allow concurrent readers to build the mapping data. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Acked-by: "Kirill A. Shutemov" <kirill@shutemov.name> Cc: Oleg Nesterov <oleg@redhat.com> Acked-by: Hugh Dickins <hughd@google.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mgorman@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3dec0ba
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 90 bytes |
Makefile | -rw-r--r-- | 450 bytes |
fc.c | -rw-r--r-- | 3.3 KB |
fddi.c | -rw-r--r-- | 5.7 KB |
garp.c | -rw-r--r-- | 17.7 KB |
hippi.c | -rw-r--r-- | 6.0 KB |
mrp.c | -rw-r--r-- | 24.7 KB |
p8022.c | -rw-r--r-- | 1.9 KB |
p8023.c | -rw-r--r-- | 1.6 KB |
psnap.c | -rw-r--r-- | 3.5 KB |
stp.c | -rw-r--r-- | 2.6 KB |
Computing file changes ...