HomeFreeBSD

Make MAP_NOSYNC handling in the vm_fault() read-locked object path

Description

Make MAP_NOSYNC handling in the vm_fault() read-locked object path
compatible with write-locked path. Test for MAP_ENTRY_NOSYNC and set
VPO_NOSYNC for pages with dirty mask zero (this does not exclude a
possibility that the page is dirty, e.g. due to read fault on
writeable mapping and consequent write; the same issue exists in the
slow path).

Use helper vm_fault_dirty() to unify fast and slow path handling of
VPO_NOSYNC and setting the dirty mask.

Reviewed by: alc
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on
Parents
rS272906: Change the PF hash from Jenkins to Murmur3. In forwarding tests
Branches
Unknown
Tags
Unknown

Event Timeline