HomeFreeBSD

LinuxKPI: Allow cdev_pager prefault handler to steal pages

Description

LinuxKPI: Allow cdev_pager prefault handler to steal pages

from other vm_objects. This workarounds "Page already inserted" panic
in vm_page_insert routine triggered on attempt to mmap file created
with shmem_file_setup call. After introduction of "GTT mmap
interface v4" a.k.a. MMAP_OFFSET, vm_objects allocated by these calls
may try to own intersected sets of pages that leads to the assertion.

Reviewed by: kib
Differential revision: https://reviews.freebsd.org/D32090

(cherry picked from commit 62ff0566c93056e00b3c9c3f8d2ac1e7d8e0c098)

Details

Provenance
wulfAuthored on Sep 29 2021, 8:14 PM
Reviewer
kib
Differential Revision
D32090: LinuxKPI: Allow cdev_pager prefault handler to steal pages from other vm_objects
Parents
rG4fba1853b5bd: LinuxKPI: stub anon_inode_getfile
Branches
Unknown
Tags
Unknown