Do not sleep waiting for the MAP_ENTRY_IN_TRANSITION state ending with
the vnode locked. Review: https://reviews.freebsd.org/D2381 Submitted by: Conrad Meyer, Attilio Rao MFC after: 1 week
This commit is contained in:
parent
37a9b4136e
commit
85af31a464
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282128
@ -348,6 +348,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
|
||||
|
Loading…
Reference in New Issue
Block a user