kernel/fork: assert no VMA readers during its destruction
authorSuren Baghdasaryan <surenb@google.com>
Mon, 27 Feb 2023 17:36:19 +0000 (09:36 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 03:02:59 +0000 (20:02 -0700)
commitf2e13784c16a98e269b3111ac02ae44446dd589c
tree9749cbfbb46025ed2e87f4017d0a2928046cbf13
parent98e51a2239d9d419d819cd61a2e720ebf19a8b0a
kernel/fork: assert no VMA readers during its destruction

Assert there are no holders of VMA lock for reading when it is about to be
destroyed.

Link: https://lkml.kernel.org/r/20230227173632.3292573-21-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/fork.c