summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_mcast.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-08-11 08:31:40 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-08-11 08:31:40 +0000
commitb453d3d239d0dddd47740530389be1ceb70d9566 (patch)
treefa04aee802f2e579ed2aad91311ad591f8ddede8 /sys/netinet6/in6_mcast.c
parent8a0917c35b7cea1cd935ad5dca86c1ee0f58b2e0 (diff)
downloadsrc-test2-b453d3d239d0dddd47740530389be1ceb70d9566.tar.gz
src-test2-b453d3d239d0dddd47740530389be1ceb70d9566.zip
Notes
Diffstat (limited to 'sys/netinet6/in6_mcast.c')
-rw-r--r--sys/netinet6/in6_mcast.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/netinet6/in6_mcast.c b/sys/netinet6/in6_mcast.c
index 2433dc2ee194..fde7e5dad165 100644
--- a/sys/netinet6/in6_mcast.c
+++ b/sys/netinet6/in6_mcast.c
@@ -516,16 +516,9 @@ in6m_release(struct in6_multi *inm)
* dedicated thread to avoid deadlocks when draining in6m_release tasks.
*/
TASKQUEUE_DEFINE_THREAD(in6m_free);
-static struct task in6m_free_task;
static struct in6_multi_head in6m_free_list = SLIST_HEAD_INITIALIZER();
static void in6m_release_task(void *arg __unused, int pending __unused);
-
-static void
-in6m_init(void *arg __unused)
-{
- TASK_INIT(&in6m_free_task, 0, in6m_release_task, NULL);
-}
-SYSINIT(in6m_init, SI_SUB_TASKQ, SI_ORDER_ANY, in6m_init, NULL);
+static struct task in6m_free_task = TASK_INITIALIZER(0, in6m_release_task, NULL);
void
in6m_release_list_deferred(struct in6_multi_head *inmh)