From ae13a0da650603eb50dbcd13fdc59a56951c94c6 Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 5 May 2015 08:12:24 +0000 Subject: MFC r282128: Do not sleep waiting for the MAP_ENTRY_IN_TRANSITION state ending with the vnode locked. --- sys/vm/vm_fault.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/vm') diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 4311fe8..0c111da 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -345,6 +345,10 @@ RetryFault:; vm_map_lock(fs.map); if (vm_map_lookup_entry(fs.map, vaddr, &fs.entry) && (fs.entry->eflags & MAP_ENTRY_IN_TRANSITION)) { + if (fs.vp != NULL) { + vput(fs.vp); + fs.vp = NULL; + } fs.entry->eflags |= MAP_ENTRY_NEEDS_WAKEUP; vm_map_unlock_and_wait(fs.map, 0); } else -- cgit v1.1