summaryrefslogtreecommitdiffstats
path: root/mm/khugepaged.c
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2020-10-16 05:12:57 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-16 20:11:21 +0200
commit7f3bfab52cab96c510fd60dd757a32db7bc52d3c (patch)
tree56a0c274000eac4b997a2fbc1d9bc044270c3c54 /mm/khugepaged.c
parentbinfmt_elf, binfmt_elf_fdpic: use a VMA list snapshot (diff)
downloadlinux-7f3bfab52cab96c510fd60dd757a32db7bc52d3c.tar.xz
linux-7f3bfab52cab96c510fd60dd757a32db7bc52d3c.zip
mm/gup: take mmap_lock in get_dump_page()
Properly take the mmap_lock before calling into the GUP code from get_dump_page(); and play nice, allowing the GUP code to drop the mmap_lock if it has to sleep. As Linus pointed out, we don't actually need the VMA because __get_user_pages() will flush the dcache for us if necessary. Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: "Eric W . Biederman" <ebiederm@xmission.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Hugh Dickins <hughd@google.com> Link: http://lkml.kernel.org/r/20200827114932.3572699-7-jannh@google.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/khugepaged.c')
0 files changed, 0 insertions, 0 deletions