]> Gentwo Git Trees - linux/.git/commitdiff
workqueue: Remove unused assert_rcu_or_wq_mutex_or_pool_mutex
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Mon, 10 Nov 2025 01:26:07 +0000 (09:26 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 10 Nov 2025 16:10:18 +0000 (06:10 -1000)
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>
kernel/workqueue.c

index 45320e27a16c4a5a6c7642388f445ad4b86a8f27..c6e52f3862a537efec66ded9b27afb3019df04d7 100644 (file)
@@ -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]; \