From 3b01433a2e00a3489fc2a746078d79530a450015 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 24 Sep 2021 18:59:33 +0300 Subject: triton: do not queue context in init state --- accel-pppd/triton/triton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel-pppd/triton/triton.c b/accel-pppd/triton/triton.c index a881910..395a42d 100644 --- a/accel-pppd/triton/triton.c +++ b/accel-pppd/triton/triton.c @@ -330,12 +330,12 @@ int triton_queue_ctx(struct _triton_context_t *ctx) { spin_lock(&threads_lock); ctx->pending = 1; - if (ctx->thread || ctx->entry2.next || ctx->need_free) { + if (ctx->thread || ctx->entry2.next || ctx->need_free || ctx->init) { spin_unlock(&threads_lock); return 0; } - if (list_empty(&sleep_threads) || ctx->init || need_config_reload) { + if (list_empty(&sleep_threads) || need_config_reload) { list_add_tail(&ctx->entry2, &ctx_queue[ctx->priority]); spin_unlock(&threads_lock); ctx->queued = 1; -- cgit v1.2.3