HomeFreeBSD

Avoid unnecessary object locking in vm_page_grab_pages_unlocked().

Description

Avoid unnecessary object locking in vm_page_grab_pages_unlocked().

We were needlessly acquiring the object lock to call
vm_page_grab_pages() even when all of the requested pages were looked up
locklessly. Fix that, stop testing for count == 0 in
vm_page_grab_pages(), and add assertions to help catch this kind of
mistake.

Reported by: cem
Reviewed by: alc, cem, dougm, jeff
Differential Revision: https://reviews.freebsd.org/D26304

Details

Provenance
markjAuthored on Sep 2 2020, 7:59 PM
Parents
rGac07cdf8f795: In ltc430x(4), add the ability to configure control register 2 via FDT or
Branches
Unknown
Tags
Unknown

Event Timeline