[Bug 278826] [hpet] cdev->si_refcount leakage when enable hpet as timecounter hardware

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 May 2024 09:42:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278826

--- Comment #3 from Konstantin Belousov <kib@FreeBSD.org> ---
No, si_refcount is not a reference existing during the mapping lifetime.
The si_refcount is the transient refcount taken while a kernel thread operates
on the cdev.  For instance, in case of d_mmap, it is taken by dev_refthread()
in old_dev_pager_fault() around the call to csw->d_mmap, and released by the
nearby call(s) to dev_relthread().

-- 
You are receiving this mail because:
You are the assignee for the bug.