diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2009-07-14 22:52:46 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2009-07-14 22:52:46 +0000 |
| commit | f33a947b56e0667c6e1e3384d00ffb1a5b67060e (patch) | |
| tree | b51305b6f0c522d37eac747f4cbb29242078546b /sys/kern/kern_synch.c | |
| parent | 79799053a79ee5bb0446bcf61312caea774c2a14 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
| -rw-r--r-- | sys/kern/kern_synch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index aad12b602a44..30a8bb3615bd 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -188,6 +188,8 @@ _sleep(void *ident, struct lock_object *lock, int priority, flags = SLEEPQ_SLEEP; if (catch) flags |= SLEEPQ_INTERRUPTIBLE; + if (priority & PBDRY) + flags |= SLEEPQ_STOP_ON_BDRY; sleepq_lock(ident); CTR5(KTR_PROC, "sleep: thread %ld (pid %ld, %s) on %s (%p)", |
