workqueue: use int type for shutdown load/store
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Oct 2014 11:10:42 +0000 (07:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Oct 2014 11:10:42 +0000 (07:10 -0400)
"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 <mathieu.desnoyers@efficios.com>
urcu/workqueue-fifo.h

index c2766e5ac85f7c696bc507e996ab5fa94fa3d220..e2dd72f0c1dc66c47069c8b1f7292ff74938ee5c 100644 (file)
@@ -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 {
This page took 0.026383 seconds and 4 git commands to generate.