munmap: fix deadlock with remote pagefault on vm range lock
Add similar protection to clear_host_pte than to set_host_vma (see #986) Also make the page fault handler only skip taking lock if the munmap happened on the same cpu id Change-Id: I6d9e68e8f8905b20bb2ccfa72848e04fe6404ab6
This commit is contained in:
committed by
Balazs Gerofi
parent
621533bbd3
commit
a563d780c1
@ -750,7 +750,7 @@ struct process_vm {
|
||||
// 2. addition of process page table (allocate_pages, update_process_page_table)
|
||||
// note that physical memory allocator (ihk_mc_alloc_pages, ihk_pagealloc_alloc)
|
||||
// is protected by its own lock (see ihk/manycore/generic/page_alloc.c)
|
||||
unsigned long is_memory_range_lock_taken;
|
||||
int is_memory_range_lock_taken;
|
||||
/* #986: Fix deadlock between do_page_fault_process_vm() and set_host_vma() */
|
||||
|
||||
ihk_atomic_t refcount;
|
||||
|
||||
Reference in New Issue
Block a user