summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2008-10-16 04:17:17 +0000
committerDavid Xu <davidxu@FreeBSD.org>2008-10-16 04:17:17 +0000
commitffdc5a34edc182a4a2e206837ba736a15099270a (patch)
treef07d2edf5ff0208af1e2a90182626dfd32232a5c
parentc3fed0bbc140cebd352ee79a810bb15f8d2c431b (diff)
Notes
-rw-r--r--sys/kern/kern_thread.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 7298edc5943c..3bde08ed060b 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -572,8 +572,16 @@ thread_single(int mode)
sleepq_abort(td2, EINTR);
break;
case SINGLE_BOUNDARY:
+ if (TD_IS_SUSPENDED(td2) &&
+ !(td2->td_flags & TDF_BOUNDARY))
+ wakeup_swapper |=
+ thread_unsuspend_one(td2);
+ if (TD_ON_SLEEPQ(td2) &&
+ (td2->td_flags & TDF_SINTR))
+ wakeup_swapper |=
+ sleepq_abort(td2, ERESTART);
break;
- default:
+ default:
if (TD_IS_SUSPENDED(td2)) {
thread_unlock(td2);
continue;