]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use dcdwait to block threads to serialize writes.
authored <ed@FreeBSD.org>
Tue, 23 Jun 2009 21:33:26 +0000 (21:33 +0000)
committered <ed@FreeBSD.org>
Tue, 23 Jun 2009 21:33:26 +0000 (21:33 +0000)
commite93642ed4fe5256e16ece4f1af6b6a38c0428121
treea2b2b7574dd4a6371c71db8d85602780c27c8f1b
parent351cb69f95a682aff1949a002284ccc928a5a5e5
Use dcdwait to block threads to serialize writes.

I suspect the usage of bgwait causes a lot of spurious wakeups when
threads are blocked in the background, because they will be woken up
each time a write() call is performed.

Also wakeup dcdwait when the TTY is abandoned.
sys/kern/tty.c