MM: facility for deferred munmap()

Conflicts:
	kernel/process.c
This commit is contained in:
Balazs Gerofi
2017-12-05 17:05:39 +09:00
parent 521e0dc707
commit 96b8b30516
2 changed files with 30 additions and 0 deletions

View File

@@ -261,10 +261,13 @@ init_process_vm(struct process *owner, struct address_space *asp, struct process
int i;
ihk_mc_spinlock_init(&vm->memory_range_lock);
ihk_mc_spinlock_init(&vm->page_table_lock);
ihk_mc_spinlock_init(&vm->vm_deferred_unmap_lock);
ihk_atomic_set(&vm->refcount, 1);
vm->vm_range_tree = RB_ROOT;
vm->vm_range_numa_policy_tree = RB_ROOT;
INIT_LIST_HEAD(&vm->vm_deferred_unmap_range_list);
INIT_LIST_HEAD(&vm->vm_range_numa_policy_list);
vm->address_space = asp;
vm->proc = owner;
vm->exiting = 0;