-
- Downloads
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. [sfr@canb.auug.org.au: update fremap.c] Signed-off-by:Davidlohr Bueso <dbueso@suse.de> Reviewed-by:
Rik van Riel <riel@redhat.com> Acked-by:
"Kirill A. Shutemov" <kirill@shutemov.name> Acked-by:
Hugh Dickins <hughd@google.com> Cc: Oleg Nesterov <oleg@redhat.com> Acked-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Acked-by:
Mel Gorman <mgorman@suse.de> Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/hugetlbfs/inode.c 5 additions, 5 deletionsfs/hugetlbfs/inode.c
- fs/inode.c 1 addition, 1 deletionfs/inode.c
- include/linux/fs.h 4 additions, 3 deletionsinclude/linux/fs.h
- include/linux/mmu_notifier.h 1 addition, 1 deletioninclude/linux/mmu_notifier.h
- kernel/events/uprobes.c 1 addition, 1 deletionkernel/events/uprobes.c
- mm/filemap.c 5 additions, 5 deletionsmm/filemap.c
- mm/hugetlb.c 5 additions, 5 deletionsmm/hugetlb.c
- mm/mmap.c 4 additions, 4 deletionsmm/mmap.c
- mm/mremap.c 1 addition, 1 deletionmm/mremap.c
- mm/rmap.c 3 additions, 3 deletionsmm/rmap.c
Loading
Please register or sign in to comment