HomeFreeBSD

In vm_page_xunbusy_maybelocked(), add fast path for unbusy when no

Description

In vm_page_xunbusy_maybelocked(), add fast path for unbusy when no
waiters exist, same as for vm_page_xunbusy(). If previous value of
busy_lock was VPB_SINGLE_EXCLUSIVER, no waiters existed and wakeup is
not needed.

Move common code from vm_page_xunbusy_maybelocked() and
vm_page_xunbusy_hard() to vm_page_xunbusy_locked().

Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)

Details

Provenance
kibAuthored on
Reviewer
alc
Parents
rS302130: Add a comment noting locking regime for vm_page_xunbusy().
Branches
Unknown
Tags
Unknown