cvs commit: src/sys/kern kern_fork.c
alfred at freebsd.org
Wed Oct 24 21:44:29 PDT 2007
* David Xu <davidxu at FreeBSD.org> [071024 19:40] wrote:
> Alfred Perlstein wrote:
> >>thread_suspend_check() with SINGLE_BOUNDARY is used is only called
> >>in userret() where I don't think any code is still using the p_fd.
> >This is not an acceptable solution as it will deadlock unless all
> >threads exit the kernel.
> Where is deadlock ? thread_single(SINGLE_BOUNDARY) does not suspend
> sleeping thread, it will interrupt it.
If it does, it will give awful semantics, it's better to just
disallow this action with threads until the code is fixed.
- Alfred Perlstein
More information about the cvs-src