Commit f42f9091 authored by Breno Leitao's avatar Breno Leitao Committed by Tejun Heo
Browse files

workqueue: Use POOL_BH instead of WQ_BH when checking pool flags



pr_cont_worker_id() checks pool->flags against WQ_BH, which is a
workqueue-level flag (defined in workqueue.h). Pool flags use a
separate namespace with POOL_* constants (defined in workqueue.c).
The correct constant is POOL_BH. Both WQ_BH and POOL_BH are defined
as (1 << 0) so this has no behavioral impact, but it is semantically
wrong and inconsistent with every other pool-level BH check in the
file.

Fixes: 4cb1ef64 ("workqueue: Implement BH workqueues to eventually replace tasklets")
Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Acked-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent c107785c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6274,7 +6274,7 @@ static void pr_cont_worker_id(struct worker *worker)
{
	struct worker_pool *pool = worker->pool;

	if (pool->flags & WQ_BH)
	if (pool->flags & POOL_BH)
		pr_cont("bh%s",
			pool->attrs->nice == HIGHPRI_NICE_LEVEL ? "-hi" : "");
	else