Skip to content

Commit 4457265

Browse files
zhang jiaohtejun
authored andcommitted
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 <[email protected]> Reviewed-by: Lai Jiangshan <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 17d85f3 commit 4457265

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

kernel/workqueue.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,6 @@ static void show_one_worker_pool(struct worker_pool *pool);
541541
!lockdep_is_held(&wq_pool_mutex), \
542542
"RCU or wq_pool_mutex should be held")
543543

544-
#define assert_rcu_or_wq_mutex_or_pool_mutex(wq) \
545-
RCU_LOCKDEP_WARN(!rcu_read_lock_any_held() && \
546-
!lockdep_is_held(&wq->mutex) && \
547-
!lockdep_is_held(&wq_pool_mutex), \
548-
"RCU, wq->mutex or wq_pool_mutex should be held")
549-
550544
#define for_each_bh_worker_pool(pool, cpu) \
551545
for ((pool) = &per_cpu(bh_worker_pools, cpu)[0]; \
552546
(pool) < &per_cpu(bh_worker_pools, cpu)[NR_STD_WORKER_POOLS]; \

0 commit comments

Comments
 (0)