]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When r207410 eliminated the acquisition and release of the page queues
authorAlan Cox <alc@FreeBSD.org>
Thu, 9 Dec 2010 20:16:00 +0000 (20:16 +0000)
committerAlan Cox <alc@FreeBSD.org>
Thu, 9 Dec 2010 20:16:00 +0000 (20:16 +0000)
commitd1cf854b5df45ec607652c7fb1ac1e51a3218610
tree9720ae95e7f5c2244f283d29e31966b0541bd764
parentb4a8d95279d9568e67ff32c963bf8c1c368628ad
When r207410 eliminated the acquisition and release of the page queues
lock from pmap_extract_and_hold(), it didn't take into account that
pmap_pte_quick() sometimes requires the page queues lock to be held.
This change reimplements pmap_extract_and_hold() such that it no
longer uses pmap_pte_quick(), and thus never requires the page queues
lock.

For consistency, adopt the same idiom as used by the new
implementation of pmap_extract_and_hold() in pmap_extract() and
pmap_mincore().  It also happens to make these functions shorter.

Fix a style error in pmap_pte().

Reviewed by: kib@
sys/i386/i386/pmap.c