summaryrefslogtreecommitdiff
path: root/accel-pppd/triton/triton.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/triton/triton.c')
-rw-r--r--accel-pppd/triton/triton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c
index 02af0354..897a4ea4 100644
--- a/accel-pppd/triton/triton.c
+++ b/accel-pppd/triton/triton.c
@@ -374,8 +374,10 @@ void __export triton_context_unregister(struct triton_context_t *ud)
spin_unlock(&ctx_list_lock);
if (terminate) {
+ spin_lock(&threads_lock);
list_for_each_entry(t, &threads, entry)
triton_thread_wakeup(t);
+ spin_unlock(&threads_lock);
}
}