From nobody Sat Feb 7 09:58:38 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F3F5327210 for ; Wed, 24 Dec 2025 16:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766593213; cv=none; b=r8X9VJc6xs9yEi1MqgzTXGtn9gVLi3EmYIUkSWCPs6vxozhB+DOX2h/Ew49QRfUIoLB3/+nnYlA3WfanJ2fXxInhW4Q3c7SULEYXvntqdE+S+8toIrdTBj07agARSBAVNmjshR2IHHMAlNvRCaL+rYuLnISK+mg8I1vqeybfDbg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766593213; c=relaxed/simple; bh=PaXjZfgQMpzdjZFMlJDaRC2tkB80KzVmt4Ci+gTEN1o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dcwSR2wJlaoMizNkhLL2CEdR3GLk4CgRCrFz8Dq2OwKOVHrone3xe3nh8ZmpEN66df+Ir528ZSg8dld+AYdGvG+IoEeywzSxxJTUM1Rm4akTyJ4LY03wbU92QKSVxXFdfS9t2o7IHQf+UIPHaggFGQ27WxHaCtnabiDrrdgd+kk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=EyrXqIPR; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="EyrXqIPR" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-47795f6f5c0so33660585e9.1 for ; Wed, 24 Dec 2025 08:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1766593206; x=1767198006; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PhKyhj6a/64o16DzAvjd5u3QkA1cUgN/J7LVqg+fz+I=; b=EyrXqIPRO2FbnmX3qTvpxouvO1YM7kC2/Nzt5hGynPG9gBlLSepQsf7TyexDZN/JBk p/XcNn/nYAUv7krLRane5D211kBQwRJY9bIKgC6Hwnh17+8oDQAiDKW/oGwxHkpvo9WJ KcqNl0M68n5UfEHnaW3UcOoHTEwGqo79pznhJGVhx4RXgtt8E0Jo+ugG/dKZ/RkHgmzC 5Gb/DTwNXsXJWg1fanJIIrmtpdpVpoPDFUC/v1fDPh2bA46POPbMqNeQl/VSmsiy/vIz cq+8LoyTK7olTrWwTYviNoa8GqACpeELcGoUYUvgrsMyo8LsexdJIfD/UKZnhlVW+e3J 1ymg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766593206; x=1767198006; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PhKyhj6a/64o16DzAvjd5u3QkA1cUgN/J7LVqg+fz+I=; b=ka0Pb4AfqSH7iaH+gAURRMA9MhgRT9CoOTAoyipMWhzw/ux/RxQezvy0CAu7gxKqyx HzX2vRYC6FAaERoqFnt/+A4ATYdyjPRIQ7RUT6TOmRW6/2fb0oSSRN0xk364JMh+vATx ZMGwNLKAWwDsUclEZKwWQyNtEiHLcN/3ooWtp95JHHtAL4uuMc0QpdeBER1jCNnHpPXw q1hgm2ca4r4Ul6xrwZYODB/5U1mV2bumahsUtP9d6Vw6N3u7yMZnfS6esWMxXOzAbbjt MVTH8jNDSmsZ4rWu3+qjFwmqBm79ikWuT2ce8Jb9Xy/d9AIn56QU4bSP65Rz5BiCXZ9E XWKg== X-Gm-Message-State: AOJu0Ywgfh18u5CgZa91X8b38wgFrG6MeqTuSajligC6pp7/j6UnPRdD Ph7ehofRVjV3RvmEzM+UbD4tXeQSr/KfDTkYxtrWw9s/06NX+1tI8eneX+VQ8SQRbmQyli02DMf jKh3S X-Gm-Gg: AY/fxX6uWITTUG4NtehMwC9KBhhBUMcJAIahyYhKgk70M9RanSuEaJ7/2IBFAh1x+GJ imWvI2BF+MKtcs313jfZsJtUs3YDKDpZVtRvkqto8vCW4Qv9Ssp4e40i1manaYqKdUNbtj5Vp9W TxGrzvcHE0S3yB7TYwxCfWRF3HoR6z3s4+rWfgu5OpPp5AuW11Oo16mhmcGn7rZBVYSRFW64lkW 0MNTUOJLDgqS84vYX97b1HVxVaA9BpPHh2sinzGedG8vN+L/QUUOUZ6hRjWym+z67LrxiUiZClc VxYHPs1h4pz3tCjPfTxBOOwr99u05r/DhKoks/JUK9nSjwjU4Abw44dhznAe67kd61Re9dQa59G YE7djZ4jDXLamYrVgiYYHvCalHX5ufozme2eWgiEi26PxsDcvMHtgY4jO7qtpATioL7/Rgn6qa0 2CD0e+ExiwiTnQv0up09/Gdc13dszTfNuDYjdG/b2UyiGyrg== X-Google-Smtp-Source: AGHT+IFfIXvcwc7HfAMvTUFfAK0A8io4h6Ck14aYx0BaIwshYr/Rpwhi3VdLZHyLSabha40nPOi+OA== X-Received: by 2002:a05:600c:848c:b0:47b:d949:9b87 with SMTP id 5b1f17b1804b1-47d1954a485mr158801925e9.12.1766593206335; Wed, 24 Dec 2025 08:20:06 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d193d5372sm319160795e9.14.2025.12.24.08.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Dec 2025 08:20:06 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers Subject: [PATCH] tracing: Replace use of system_wq with system_percpu_wq Date: Wed, 24 Dec 2025 17:20:00 +0100 Message-ID: <20251224162000.141731-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 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" This patch continues the effort to refactor workqueue APIs, which has begun with the changes introducing new workqueues and a new alloc_workqueue flag: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The point of the refactoring is to eventually alter the default behavior of workqueues to become unbound by default so that their workload placement is optimized by the scheduler. Before that to happen after a careful review and conversion of each individ= ual case, workqueue users must be converted to the better named new workqueues = with no intended behaviour changes: system_wq -> system_percpu_wq system_unbound_wq -> system_dfl_wq This way the old obsolete workqueues (system_wq, system_unbound_wq) can be removed in the future. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- kernel/trace/trace_events_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events= _filter.c index 385af8405392..bb6de1d38f78 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c @@ -1375,7 +1375,7 @@ static void free_filter_list_tasks(struct rcu_head *r= hp) struct filter_head *filter_list =3D container_of(rhp, struct filter_head,= rcu); =20 INIT_RCU_WORK(&filter_list->rwork, free_filter_list_work); - queue_rcu_work(system_wq, &filter_list->rwork); + queue_rcu_work(system_percpu_wq, &filter_list->rwork); } =20 /* --=20 2.52.0