Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2024 09:42:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278826] [hpet] cdev->si_refcount leakage when enable hpet as timecounter hardware
Message-ID:  <bug-278826-227-143hEMl9TF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278826-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278826-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278826

--- 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 opera=
tes
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().

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278826-227-143hEMl9TF>