diff options
author | attilio <attilio@FreeBSD.org> | 2012-09-12 22:10:53 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-09-12 22:10:53 +0000 |
commit | a634dfc320608f9955ab0350a7f78ee73064b909 (patch) | |
tree | 139a9f57a8c17d9b87a87568fbf9be1819e671f0 /usr.bin | |
parent | ac29dac65b70ec7f821f36ac07f086e6a514fe1a (diff) | |
download | FreeBSD-src-a634dfc320608f9955ab0350a7f78ee73064b909.zip FreeBSD-src-a634dfc320608f9955ab0350a7f78ee73064b909.tar.gz |
Improve check coverage about idle threads.
Idle threads are not allowed to acquire any lock but spinlocks.
Deny any attempt to do so by panicing at the locking operation
when INVARIANTS is on. Then, remove the check on blocking on a
turnstile.
The check in sleepqueues is left because they are not allowed to use
tsleep() either which could happen still.
Reviewed by: bde, jhb, kib
MFC after: 1 week
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions