]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: introduce mod_vm_flags_nolock
authorSuren Baghdasaryan <surenb@google.com>
Tue, 8 Nov 2022 19:15:56 +0000 (19:15 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:59:27 +0000 (15:59 -0500)
commit531e824d0e58b32b9ad6c5038336d47a2d8eb06c
treea1ed126fe7103ecfce8c95e163280b34b85ce1fe
parent4320966a5c9cce0d5f20a864fb1ebb43f3adb0c3
mm: introduce mod_vm_flags_nolock

In cases when VMA flags are modified after VMA was isolated and mmap_lock
was downgraded, flags modifications do not require per-VMA locking and
an attempt to lock the VMA would result in an assertion because mmap
write lock is not held.
Introduce mod_vm_flags_nolock to be used in such situation.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
include/linux/mm.h