]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove the now-unnecessary mmget_still_valid() hack
authorJann Horn <jannh@google.com>
Fri, 16 Oct 2020 03:13:00 +0000 (20:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:22 +0000 (11:11 -0700)
commit1c8e01d37f7e2d1a9b017ccbc91ad5877f15a068
tree71b16b0e22ee630e2956a3285990fb49df84685e
parentfcb99cd2f8b9547282cdf8bb9d3fc08e6d139c49
mm: remove the now-unnecessary mmget_still_valid() hack

The preceding patches have ensured that core dumping properly takes the
mmap_lock.  Thanks to that, we can now remove mmget_still_valid() and all
its users.

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-8-jannh@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/infiniband/core/uverbs_main.c
drivers/vfio/pci/vfio_pci.c
fs/proc/task_mmu.c
fs/userfaultfd.c
include/linux/sched/mm.h
mm/khugepaged.c
mm/madvise.c
mm/mmap.c