]> Git Repo - linux.git/commit
userfaultfd: avoid mmap_sem read recursion in mcopy_atomic
authorAndrea Arcangeli <[email protected]>
Fri, 4 Sep 2015 22:47:08 +0000 (15:47 -0700)
committerLinus Torvalds <[email protected]>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commitb6ebaedb4cb1a18220ae626c3a9e184ee39dd248
tree4ab4d9fda8e406e1103c82325ff7de78c9708816
parentc1a4de99fada21e2e9251e52cbb51eff5aadc757
userfaultfd: avoid mmap_sem read recursion in mcopy_atomic

If the rwsem starves writers it wasn't strictly a bug but lockdep
doesn't like it and this avoids depending on lowlevel implementation
details of the lock.

[[email protected]: delete weird BUILD_BUG_ON()]
Signed-off-by: Andrea Arcangeli <[email protected]>
Acked-by: Pavel Emelyanov <[email protected]>
Cc: Sanidhya Kashyap <[email protected]>
Cc: [email protected]
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Andres Lagar-Cavilla <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Peter Feiner <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: "Huangpeng (Peter)" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/userfaultfd.c
This page took 0.046217 seconds and 4 git commands to generate.