Commit 4457265c authored by zhang jiao's avatar zhang jiao Committed by Tejun Heo
Browse files

workqueue: Remove unused assert_rcu_or_wq_mutex_or_pool_mutex



assert_rcu_or_wq_mutex_or_pool_mutex is never referenced in the code.
Just remove it.

Signed-off-by: default avatarzhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: default avatarLai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 17d85f33
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -541,12 +541,6 @@ static void show_one_worker_pool(struct worker_pool *pool);
			 !lockdep_is_held(&wq_pool_mutex),		\
			 "RCU or wq_pool_mutex should be held")

#define assert_rcu_or_wq_mutex_or_pool_mutex(wq)			\
	RCU_LOCKDEP_WARN(!rcu_read_lock_any_held() &&			\
			 !lockdep_is_held(&wq->mutex) &&		\
			 !lockdep_is_held(&wq_pool_mutex),		\
			 "RCU, wq->mutex or wq_pool_mutex should be held")

#define for_each_bh_worker_pool(pool, cpu)				\
	for ((pool) = &per_cpu(bh_worker_pools, cpu)[0];		\
	     (pool) < &per_cpu(bh_worker_pools, cpu)[NR_STD_WORKER_POOLS]; \