diff options
author | davidxu <davidxu@FreeBSD.org> | 2002-11-17 11:47:03 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2002-11-17 11:47:03 +0000 |
commit | 7742d9b2867e95aff29d864698265dfce7b054d5 (patch) | |
tree | 1378f78156261fd06918dc6cddd6ff681f1ad56c /sys/dev/usb/ucom.c | |
parent | 2e6e4a9c2a577bb3ef91a5e4beb65c499ad40dcf (diff) | |
download | FreeBSD-src-7742d9b2867e95aff29d864698265dfce7b054d5.zip FreeBSD-src-7742d9b2867e95aff29d864698265dfce7b054d5.tar.gz |
1.Add sysctls to control KSE resource allocation.
kern.threads.max_threads_per_proc
kern.threads.max_groups_per_proc
2.Temporary disable borrower thread stash itself as
owner thread's spare thread in thread_exit(). there
is a race between owner thread and borrow thread:
an owner thread may allocate a spare thread as this:
if (td->td_standin == NULL)
td->standin = thread_alloc();
but thread_alloc() can block the thread, then a borrower
thread would possible stash it self as owner's spare
thread in thread_exit(), after owner is resumed, result
is a thread leak in kernel, double check in owner can
avoid the race, but it may be ugly and not worth to do.
Diffstat (limited to 'sys/dev/usb/ucom.c')
0 files changed, 0 insertions, 0 deletions