]> Git Repo - linux.git/commit - mm/mremap.c
mm: convert i_mmap_mutex to rwsem
authorDavidlohr Bueso <[email protected]>
Sat, 13 Dec 2014 00:54:24 +0000 (16:54 -0800)
committerLinus Torvalds <[email protected]>
Sat, 13 Dec 2014 20:42:45 +0000 (12:42 -0800)
commitc8c06efa8b552608493b7066c234cfa82c47fcea
tree7e206c669149766fb5a77a3ef85cdd4fac63be78
parent83cde9e8ba95d180eaefefe834958fbf7008cf39
mm: convert i_mmap_mutex to rwsem

The i_mmap_mutex is a close cousin of the anon vma lock, both protecting
similar data, one for file backed pages and the other for anon memory.  To
this end, this lock can also be a rwsem.  In addition, there are some
important opportunities to share the lock when there are no tree
modifications.

This conversion is straightforward.  For now, all users take the write
lock.

[[email protected]: update fremap.c]
Signed-off-by: Davidlohr Bueso <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Acked-by: "Kirill A. Shutemov" <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/hugetlbfs/inode.c
fs/inode.c
include/linux/fs.h
include/linux/mmu_notifier.h
kernel/events/uprobes.c
mm/filemap.c
mm/hugetlb.c
mm/mmap.c
mm/mremap.c
mm/rmap.c
This page took 0.064674 seconds and 4 git commands to generate.