From nobody Mon Feb 9 07:14:41 2026 Received: from cmccmta2.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3116134D38F for ; Mon, 10 Nov 2025 01:26:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762737993; cv=none; b=PaXv2nKXwDhCgGfHyq4/CitpWH2nbtszuLGyKQE8qbzMXIjju0RvS+Acvtpc3EvfpiDPuvQP8vpe5151dRcGNs2/rPZvZNgxGkXX3XAUHDLb2oUaC9UD77Ix6qSuG6s0z43sKL1KtsDaHMmOB5SK9x3hk6hcUvI9ENowUejAYRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762737993; c=relaxed/simple; bh=BavP+TaIcTuP+MLnz4Ujbq9GTWMn7t2ikjORWgFFXjI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pF4qeLN+UgJU9AA1c4/RK8GTqkn7NR5vR2922DKNFfx94GbQsbh7Nopw7H9CAHpuEKFUpgZ1712E1tJ9T3KF0NuAVAmBb6Ks5QKz6Haf8Wax563iFeX/xwdcl4jxYHd/FMJF1O9FChdttw98CS+DHzS5dB0+OqwwIACGhVuWjtY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee569113f3a69c-c17c1; Mon, 10 Nov 2025 09:26:18 +0800 (CST) X-RM-TRANSID: 2ee569113f3a69c-c17c1 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from Z04181454368174 (unknown[36.137.216.22]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee469113f36140-dae3b; Mon, 10 Nov 2025 09:26:18 +0800 (CST) X-RM-TRANSID: 2ee469113f36140-dae3b From: zhangjiao2 To: tj@kernel.org Cc: linux-kernel@vger.kernel.org, jiangshanlai@gmail.com, lkml@gmail.com, zhang jiao Subject: [PATCH] workqueue: Remove unused assert_rcu_or_wq_mutex_or_pool_mutex Date: Mon, 10 Nov 2025 09:26:07 +0800 Message-ID: <20251110012608.764-1-zhangjiao2@cmss.chinamobile.com> X-Mailer: git-send-email 2.50.1.windows.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: zhang jiao assert_rcu_or_wq_mutex_or_pool_mutex is never referenced in the code. Just remove it. Signed-off-by: zhang jiao Reviewed-by: Lai Jiangshan --- kernel/workqueue.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c6b79b3675c3..a86889d8218b 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -539,12 +539,6 @@ static void show_one_worker_pool(struct worker_pool *p= ool); !lockdep_is_held(&wq_pool_mutex), \ "RCU or wq_pool_mutex should be held") =20 -#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) =3D &per_cpu(bh_worker_pools, cpu)[0]; \ (pool) < &per_cpu(bh_worker_pools, cpu)[NR_STD_WORKER_POOLS]; \ --=20 2.33.0