summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/thread.h
diff options
context:
space:
mode:
authortrevtom <none@none>2006-08-30 09:00:25 -0700
committertrevtom <none@none>2006-08-30 09:00:25 -0700
commit5a64ecfaf2325d06eb5ebd8a815f40fef88b3679 (patch)
tree1a5f8b1fd67c1735057b4a92aace0a924f794896 /usr/src/uts/common/sys/thread.h
parent2859562fdfd7ef8a00f5c8a5dc05117a732e7983 (diff)
downloadillumos-joyent-5a64ecfaf2325d06eb5ebd8a815f40fef88b3679.tar.gz
6351092 Race for t_ctx in removectx() can lead to panic.
Diffstat (limited to 'usr/src/uts/common/sys/thread.h')
-rw-r--r--usr/src/uts/common/sys/thread.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/thread.h b/usr/src/uts/common/sys/thread.h
index bf60447de0..c5e406f678 100644
--- a/usr/src/uts/common/sys/thread.h
+++ b/usr/src/uts/common/sys/thread.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -333,6 +332,7 @@ typedef struct _kthread {
uint64_t t_dtrace_regv; /* DTrace saved reg from fasttrap */
#endif
hrtime_t t_hrtime; /* high-res last time on cpu */
+ kmutex_t t_ctx_lock; /* protects t_ctx in removectx() */
} kthread_t;
/*