From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) (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 A0CE138E5DE for ; Tue, 13 Jan 2026 11:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.67 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768304807; cv=none; b=piLYPwpRjWZ66WViaHRk1hKMGve9sa8fOGyqpHXQgW8n8nVMD13wDefo0YGfaqqJN+Nnrjr3QGqsRB0/EqI55Gc0N3Fyl+UDw8Kh9X7L3pd/9SlMPiVxfOz2gbsuHPFKjEiUH/QhpBLKIA13/WH5KJqskbVcpwauP68g3Kw4N+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768304807; c=relaxed/simple; bh=RhfpxzwsHJBGPJUAOwzPApcdhH/QsPkaDuPhQENUHnM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NdtvU1Kli+yDRbPp9eDEhBo6DRfg8Ck3K9mTVxENKV8UEG+L2c/MDSGBf3lCLicgvcdIG5CwNDAz1IjRxu1P5y6TcRPVumvE6C8/X1qI2rOeAhHOPyJ7IV1kbrR3TBzTXYHP10WpVYdbyRGcp8iLwf86EqldhYGqUWYDWu+SN7U= 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=MpKWMmTj; arc=none smtp.client-ip=209.85.128.67 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="MpKWMmTj" Received: by mail-wm1-f67.google.com with SMTP id 5b1f17b1804b1-47774d3536dso54514225e9.0 for ; Tue, 13 Jan 2026 03:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768304804; x=1768909604; 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=d85txJdof5wjo71Nb7SGfL6iakONr6lxOxxOTz4d06A=; b=MpKWMmTjA3d4u7qDyQy6OpOWYfpS6+i/m8SrvEqawDnXLxRcbe+k1/GCCHWWF0UyAQ F3M5aML9rbyP1yU4TXmoHwAEfsbKwiVZ0WoURFd858kbLSKy+1CbyiR68c61g/UwcLYd 34gK1hKmqCCevcdIZjE5jYg4G5Qb9f1jLZvFq2KcWBy9P3TqB+llpQW5NfsCOjwYAkqG iwHMvNEZdrYJWyXhArFuRPD05j0r6kCnNdNpx6kzCqIX70+WsrONuJ7sGmnB7sQHMCSB tr6E3CQglGWnb5S7jrnFO3uVuuKuBHfGvc/mFd++yNGX3r+8cwHCOl/zkl1IRHMAC2kY 5fUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768304804; x=1768909604; 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=d85txJdof5wjo71Nb7SGfL6iakONr6lxOxxOTz4d06A=; b=kkjN+ZSLMOOCK/TPqKMZAX9YH/XgZNMpkKPsHHmrf95u2mtS7WPMCTWbys7eAJMhJv llErq497ybSKmXOw/SOhnvl/3ahAYvgX6Eki+81U0yH7mkMqVQz956y5CJPASQBffp/u 4O0SkL315u0x/BVjemmbGNaTFjmZ+ydrRVL+ksA9jlpCMzSg+f3gLRd6eVOfjv51JSY7 N2q045h9yqmHyGhRmDnn5tu2q2sn2/gzsaiCUD9OVMNtJi4W52lTj8t+WkszGIfR+yoe RN5CODYmHGwu/1DQEZ28GpgnjmxQ9cLnmgR3r+qTxxBcj2lJPTCXU0Ide/g20aKhMjqa KuPA== X-Gm-Message-State: AOJu0Yy/AziQ2nMX839HfAqguZePbZi29Q9IzzNjkEF+1nnpdJIye8Og 5rY3P6xSqRfGgkPIY7uFlaBMbvGL4h+SU9Cc8FsuEtt16MHDHtuJJ+ho7Cvlivl4a/ge5DgcD1+ cuvJH X-Gm-Gg: AY/fxX4zCQhEwQ9wHqXf5Ak8LtkpB77Ss19k5uc1MOyIR0A9dflmBg4j74V1yGXXo3a VRtULx88TOgvZMQAtGQNyWTFvuNOoux6VUj86+3BE+ympQ0EJP1i8c4eRW6MyTMAkv07DnWe64x klymFcDaZ4QX9gMmiHi4ZD/CMTDIJshtGE7xNtAmujgr6+pXVcRfOe6t+yXF8sApLnwGKPz6FNq JDCS/nnicAYeK04uY7SOf7IrF0eH6M4vP316RzL0Cycjt2SvbZULsSIrNpf2ZTAZm5HbEtAzDR9 xLof8Fz2JyM4ZvoXW74SQfguIy8IuIHss/xUdaA5YlFW6by2CUL00IKv382HX5rA6WK9PU0pNZ9 Hk9sfHbrzbv4wJkLtrq7P2ibi6EW8u2QQ+RghQNNL44u7bxx3FfmFZe9RnT4hA2uR5jvFJyYVQ0 WfMYoYNzZ5t0Gg3qD5SXjuFMW4 X-Google-Smtp-Source: AGHT+IE8lj9FXAKsI9HXvuYhEyQ9TgnPxIb5OezkOJejVnghUIBNYs6ePvqZ/bK3Amw23Qi9we5IDg== X-Received: by 2002:a05:600c:4f87:b0:477:9890:9ab8 with SMTP id 5b1f17b1804b1-47ed7bfd9bcmr28168805e9.3.1768304803742; Tue, 13 Jan 2026 03:46:43 -0800 (PST) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d7f6953fasm391850225e9.5.2026.01.13.03.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 03:46:43 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Andrew Morton Subject: [PATCH v2 0/3] Replace wq users and add WQ_PERCPU to alloc_workqueue() users Date: Tue, 13 Jan 2026 12:46:27 +0100 Message-ID: <20260113114630.152942-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, This series continues the effort to refactor the Workqueue API. No behavior changes are introduced by this series. === Recent changes to the WQ API === The following, address the recent changes in the Workqueue API: - commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") - commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The old workqueues will be removed in a future release cycle and unbound will become the implicit default. === Introduced Changes by this series === 1) [P 1-2] Replace use of system_wq and system_unbound_wq Workqueue users converted to the better named new workqueues: 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. 2) [P 3] add WQ_PERCPU to remaining alloc_workqueue() users With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn’t explicitly specify WQ_UNBOUND must now use WQ_PERCPU. WQ_UNBOUND will be removed in future. For more information: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ --- Changes in v2: - commit logs upgraded with a better description - rebased on 6.19-rc5 Marco Crivellari (3): mm: Replace use of system_unbound_wq with system_dfl_wq mm: Replace use of system_wq with system_percpu_wq mm: add WQ_PERCPU to alloc_workqueue users mm/backing-dev.c | 6 +++--- mm/kfence/core.c | 6 +++--- mm/memcontrol.c | 4 ++-- mm/slub.c | 4 +++- mm/vmstat.c | 3 ++- 5 files changed, 13 insertions(+), 10 deletions(-) -- 2.52.0