summaryrefslogtreecommitdiffstats
path: root/bin/kill
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2013-06-03 01:22:54 +0000
committeralc <alc@FreeBSD.org>2013-06-03 01:22:54 +0000
commit17993ced1b8bde5d02a6fa8fe966058a330ba5b2 (patch)
treec27fe59254b72779ab022da2ffc0aa1237f02da8 /bin/kill
parent65a84eb69172562654a06edf22d47a0a80d57b4f (diff)
downloadFreeBSD-src-17993ced1b8bde5d02a6fa8fe966058a330ba5b2.zip
FreeBSD-src-17993ced1b8bde5d02a6fa8fe966058a330ba5b2.tar.gz
Require that the page lock is held, instead of the object lock, when
clearing the page's PGA_REFERENCED flag. Since we are typically manipulating the page's act_count field when we are clearing its PGA_REFERENCED flag, the page lock is already held everywhere that we clear the PGA_REFERENCED flag. So, in fact, this revision only changes some comments and an assertion. Nonetheless, it will enable later changes to object locking in the pageout code. Introduce vm_page_assert_locked(), which completely hides the implementation details of the page lock from the caller, and use it in vm_page_aflag_clear(). (The existing vm_page_lock_assert() could not be used in vm_page_aflag_clear().) Over the coming weeks, I expect that we'll either eliminate or replace the various uses of vm_page_lock_assert() with vm_page_assert_locked(). Reviewed by: attilio Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'bin/kill')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud