mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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: zhang jiao <zhangjiao2@cmss.chinamobile.com> Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
@@ -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]; \
|
||||
|
||||
Reference in New Issue
Block a user