From 5a74db2d25b207135db8a909479fc4fb8a27b15d Mon Sep 17 00:00:00 2001 From: Bryan Cantrill Date: Thu, 21 Apr 2011 20:06:36 -0400 Subject: 915 ill_taskq_dispatch() race condition Reviewed by: Dan McDonald Reviewed by: Richard Lowe Reviewed by: Albert Lee Reviewed by: Gordon Ross Approved by: Richard Lowe --- usr/src/uts/common/inet/ip/ip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr/src') diff --git a/usr/src/uts/common/inet/ip/ip.c b/usr/src/uts/common/inet/ip/ip.c index f937d4dbea..ea0602a8b2 100644 --- a/usr/src/uts/common/inet/ip/ip.c +++ b/usr/src/uts/common/inet/ip/ip.c @@ -22,6 +22,7 @@ /* * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1990 Mentat Inc. + * Copyright (c) 2011 Joyent, Inc. All rights reserved. */ #include @@ -4646,10 +4647,10 @@ ip_stack_init(netstackid_t stackid, netstack_t *ns) /* * Create the taskq dispatcher thread and initialize related stuff. */ - ipst->ips_capab_taskq_thread = thread_create(NULL, 0, - ill_taskq_dispatch, ipst, 0, &p0, TS_RUN, minclsyspri); mutex_init(&ipst->ips_capab_taskq_lock, NULL, MUTEX_DEFAULT, NULL); cv_init(&ipst->ips_capab_taskq_cv, NULL, CV_DEFAULT, NULL); + ipst->ips_capab_taskq_thread = thread_create(NULL, 0, + ill_taskq_dispatch, ipst, 0, &p0, TS_RUN, minclsyspri); major = mod_name_to_major(INET_NAME); (void) ldi_ident_from_major(major, &ipst->ips_ldi_ident); -- cgit v1.2.3