summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pfinet/sched.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pfinet/sched.c b/pfinet/sched.c
index 6c6c8241..37e4ecbd 100644
--- a/pfinet/sched.c
+++ b/pfinet/sched.c
@@ -58,13 +58,13 @@ sock_wake_async (struct socket *sock, int how)
any_t
net_bh_worker (any_t arg)
{
- __mutex_lock (&global_lock);
+ __mutex_lock (&net_bh_lock);
while (1)
{
- condition_wait (&net_bh_wakeup, &global_lock);
- __mutex_lock (&net_bh_lock);
+ condition_wait (&net_bh_wakeup, &net_bh_lock);
+ __mutex_lock (&global_lock);
net_bh ();
- __mutex_unlock (&net_bh_lock);
+ __mutex_unlock (&global_lock);
}
/*NOTREACHED*/
return 0;