summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-10-05 18:00:30 +0000
committerjhb <jhb@FreeBSD.org>2004-10-05 18:00:30 +0000
commit9536269a6d161e34a72dee84f6df6b4183f51be8 (patch)
tree432f43d015d8e33b5d7fa4f6e56f07fc1131e424 /sys/netinet/tcp_output.c
parentc3db025caa5e3c37bdfa5f330ce34e1a58014ed6 (diff)
downloadFreeBSD-src-9536269a6d161e34a72dee84f6df6b4183f51be8.zip
FreeBSD-src-9536269a6d161e34a72dee84f6df6b4183f51be8.tar.gz
Add a critical section in turnstile_unpend() from before dropping the
turnstile chain lock until after making all the awakened threads runnable. First, this fixes a priority inversion race. Second, this attempts to finish waking up all of the threads waiting on a turnstile before doing a preemption. Reviewed by: Stephan Uphoff (who found the priority inversion race)
Diffstat (limited to 'sys/netinet/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud