Searched hist:"4 f9c9114a3a32ce4996e6537ba3efcda23d07dd1" (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/vm/ |
H A D | vm_fault.c | diff 4f9c9114a3a32ce4996e6537ba3efcda23d07dd1 Thu Jul 11 07:58:28 CEST 2013 Konstantin Belousov <kib@FreeBSD.org> The vm_fault() should not be allowed to proceed on the map entry which is being wired now. The entry wired count is changed to non-zero in advance, before the map lock is dropped. This makes the vm_fault() to perceive the entry as wired, and breaks the fragment which moves the wire count from the shadowed page, to the upper page, making the code unwiring non-wired page.
On the other hand, the vm_fault() calls from vm_fault_wire() should be allowed to proceed, so only drain MAP_ENTRY_IN_TRANSITION from vm_fault() when wiring_thread is not current.
Reported and tested by: pho Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
|