projects
/
users
/
jedix
/
linux-maple.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0773dfd
)
mm: Fix commit "mm: start tracking VMAs with maple tree"
mglru-mapletree
author
Liam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Apr 2022 13:37:50 +0000
(09:37 -0400)
committer
Liam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Apr 2022 13:37:50 +0000
(09:37 -0400)
Hold the lock for the destruction of the maple tree to avoid lockdep
issues - and potentially process_mrelease.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/mmap.c
patch
|
blob
|
history
diff --git
a/mm/mmap.c
b/mm/mmap.c
index f172f3aba90ff4bb8e5ae5313b3834cd87768efb..dbfd3576b6d0ab96c63c51ea432d9289154c9ea7 100644
(file)
--- a/
mm/mmap.c
+++ b/
mm/mmap.c
@@
-3163,9
+3163,9
@@
void exit_mmap(struct mm_struct *mm)
BUG_ON(count != mm->map_count);
- mmap_write_unlock(mm);
trace_exit_mmap(mm);
__mt_destroy(&mm->mm_mt);
+ mmap_write_unlock(mm);
vm_unacct_memory(nr_accounted);
}