From b19099feed421e7f4c97b207f0f7779c5eae5b52 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 24 Oct 2014 07:10:42 -0400 Subject: [PATCH] workqueue: use int type for shutdown load/store "bool" could end up being tricky if other fields are added in the same structure (updating other fields without lock). Signed-off-by: Mathieu Desnoyers --- urcu/workqueue-fifo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urcu/workqueue-fifo.h b/urcu/workqueue-fifo.h index c2766e5..e2dd72f 100644 --- a/urcu/workqueue-fifo.h +++ b/urcu/workqueue-fifo.h @@ -69,7 +69,7 @@ struct urcu_workqueue { unsigned long nr_work; /* Current number of work items */ int worker_flags; /* Worker flags */ - bool shutdown; /* Shutdown performed */ + int shutdown; /* Shutdown performed */ }; struct urcu_worker { -- 2.34.1