diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-08-11 08:31:40 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-08-11 08:31:40 +0000 |
commit | b453d3d239d0dddd47740530389be1ceb70d9566 (patch) | |
tree | fa04aee802f2e579ed2aad91311ad591f8ddede8 /sys/netinet6/in6_mcast.c | |
parent | 8a0917c35b7cea1cd935ad5dca86c1ee0f58b2e0 (diff) | |
download | src-test2-b453d3d239d0dddd47740530389be1ceb70d9566.tar.gz src-test2-b453d3d239d0dddd47740530389be1ceb70d9566.zip |
Notes
Diffstat (limited to 'sys/netinet6/in6_mcast.c')
-rw-r--r-- | sys/netinet6/in6_mcast.c | 9 |
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) |