diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-02-24 01:28:10 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-02-24 01:28:10 +0000 |
commit | 075f8dfffdb4cc60e682678f1a6bcac1c6c3853e (patch) | |
tree | 8c3080e2f187a412711fdf96d61ab1e8fee94fd2 /sys/kern | |
parent | 0e9df41dbbb4f446aad10d3bc5c3c66d027ab14c (diff) | |
download | FreeBSD-src-075f8dfffdb4cc60e682678f1a6bcac1c6c3853e.zip FreeBSD-src-075f8dfffdb4cc60e682678f1a6bcac1c6c3853e.tar.gz |
Remove a XXXKSE. kg_completed now needs proc lock.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_kse.c | 1 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 7b30cd1..20c38c7 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1060,7 +1060,6 @@ thread_link_mboxes(struct ksegrp *kg, struct kse_upcall *ku) PROC_UNLOCK(p); return (EFAULT); } - /* XXXKSE could use atomic CMPXCH here */ PROC_LOCK(p); if (mbx == (uintptr_t)kg->kg_completed) { kg->kg_completed = NULL; diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 7b30cd1..20c38c7 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1060,7 +1060,6 @@ thread_link_mboxes(struct ksegrp *kg, struct kse_upcall *ku) PROC_UNLOCK(p); return (EFAULT); } - /* XXXKSE could use atomic CMPXCH here */ PROC_LOCK(p); if (mbx == (uintptr_t)kg->kg_completed) { kg->kg_completed = NULL; |