the bitrig pedro_uvm_pmr branch has been created by pedro.

it is 0 commits behind master, and 1 commit ahead.

commit 29987b81d15126262f9695cee5b58398407d41a2
diff: https://github.com/bitrig/bitrig/commit/29987b8
author: Pedro Martelletto <[email protected]>
date: Sat Mar 7 17:32:29 2015 +0100

Don't manipulate uvm.zeropages without holding uvm.fpageqlock.

In uvm_pmr_getpages(), count the number of zeroed pages encountered and
update uvm.zeropages once, at the end of the function, with the
uvm.fpageqlock mutex held. uvm_pagezero_thread() runs without the kernel
lock, and can therefore increment uvm.zeropages while a process is
decrementing it in uvm_pmr_getpages(). Note that we now do only one
wakeup() on zerothread per uvm_pmr_getpages().

M       sys/uvm/uvm_pmemrange.c

Reply via email to