Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Nov 2024 15:51:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 282478] [ipfilter] Silence a lock upon service stop
Message-ID:  <bug-282478-7501-S5ai2rLtqM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-282478-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-282478-7501@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=3D282478

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |markj@FreeBSD.org

--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
To fix this, I think it'd be sufficient to:
1. Use callout_init_rw() to initialize ipf_slow_ch, and remove the locking =
in
ipf_timer_func().
2. Use callout_stop() instead of callout_drain().

This assumes that the global ipf lock is not dropped while executing
ipf_timer_func(), which I believe is the case.  If so, then callout_stop() =
can
cancel a pending callout without sleeping, avoiding the problem which trigg=
ers
that warning.

--=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-282478-7501-S5ai2rLtqM>