HomeFreeBSD

cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called only once

Description

cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called only once

per allocated vm_object. Otherwise, since constructors are not
idempotent, we e.g. leak device reference in case of non-managed pager.

PR: 278826
Reported by: Austin Zhang <austin.zhang@dell.com>
Reviewed by: alc, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D45113

Details

Provenance
kibAuthored on Tue, May 7, 1:23 PM
Reviewer
alc
Differential Revision
D45113: cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called only once
Parents
rG02f481a30b82: linprocfs: Fix i386 time type
Branches
Unknown
Tags
Unknown