We can't use MAP_ENTRY_IN_TRANSITION / vm_map_unlock_and_wait when we
have a vnode lock held, because it can deadlock as vm_map_wire tries to
fault it in.
Bug discovered by Peter Holm (mmap7 / mmap7a from stress2).
Patch suggested by Attilio Rao.
Differential D2381
vm_fault: Fix deadlock between vm_map_wire and vm_fault_hold cse_cem_gmail_com on Apr 27 2015, 10:05 PM. Authored by Tags None Referenced Files
Subscribers
Details We can't use MAP_ENTRY_IN_TRANSITION / vm_map_unlock_and_wait when we Bug discovered by Peter Holm (mmap7 / mmap7a from stress2). Patch suggested by Attilio Rao. Run mmap7a test; before this patch, the machine eventually deadlocks. After this patch, mmap7a no longer causes this deadlock.
Diff Detail
|