From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 3ADF93FBB69 for ; Thu, 9 Jul 2026 10:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783592721; cv=none; b=YARvG3JlOYzkJRqk9UYYGIuIdmGh80qN3u658HvDp0wjU/86n4rk0Avhim8SqxotXWWDMmmloX0I6/g0LJtw5XFean/PjYzIKBC32/7n8lrLlW+iVG+/c3hd5bJhTtJeVOReLocYTue94CQrvyKq+/cscXGJ31J5B5rDCVUsaIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783592721; c=relaxed/simple; bh=OdJwyiLkSEh3vQxuSvVSOaLPMsS3a40Lb/Tr5JKv6mo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FUF8DFnkKRnJRT5fGXyorewLtYiVdHuFRZs+UDNfgK+PYWPq1QD6YcCTMP6e93WBA4twzybaeUdk9eh2ekfZoMOCROBDGC759Bp4vYQb/b+eaFjNwGtFOa9tx07/XZHa7cYOk2qvkCNf3ev5byhLT/2PT+9OWOEGkURvasOW1rc= 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=AuEg8sAw; arc=none smtp.client-ip=209.85.128.50 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="AuEg8sAw" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-493b7612475so14667745e9.3 for ; Thu, 09 Jul 2026 03:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783592718; x=1784197518; 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:content-type; bh=u6HdKlRd0XMo/Lf6NUXf5snVAXQR4w8ByCODNhG1qIY=; b=AuEg8sAwSsTZT4kW8iHEUng2S/yOxqRKjcJr3Sa3XvdwyXxH0XtPUKNDeRzAsaU5G3 wMutJgogf5gsKTuNxDgmXdeMWiTfPzExZT1EADPexn38nsUW+V33ZqBD6zCW4yPZ4XmD YkYqlPR5e8OqPoEMt15e1rIpUjejnody4nDoctOybsx5LC23++PRY/qqqyj1Cv9Wc8Pj fi7z+LxQK0ARyS2BZpmSzpvISJ3KmYL09yQ99IT/vQR3H1QSTJG8ePKP7jYpUWqUKEGt Tz3to911orUoPROInkmsGXi0XeQ84Ffxdtgie8lKe3m48kvXl8QvmXgsCSk97BUrp2oC LB1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783592718; x=1784197518; 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:content-type; bh=u6HdKlRd0XMo/Lf6NUXf5snVAXQR4w8ByCODNhG1qIY=; b=mcdru4MnUbwKMakMfg3PGKmEXyAUX8sYyGcvnXUUmh9+Wp7VfPnDhPBSDrmqUGtV2f KMXI0l8zTKLIZ4afeQmIVsTu50DuutMgjOCzDpSlL0fLWKSu+uoqEOaxyXBgLyZ1p6NN +ZykHdTo9D38tm2LpYqtgotQqqLCUZhg1Ffl39JbNj0XW+dg7ACIEITROCqtkeLEMO05 cq+nhdhiaX5r6OfUJ1MgsP39aFb1jxL/YWAMvTuk/zgYXfd73cB2sjD/lF2Z2qSo0N5l hSenoNYThi+LTLqLpkgTZ/GlOqGBYPpERXXNA9q471fB7yX9Hv83U73+zOEOQ/UdLlNy 1Saw== X-Gm-Message-State: AOJu0YxIg22K1YgDYryTmt2sIbfxYVAUs96Zniyu76GoaTnitBnYb1vS WB2FvGaivkttxF8NCDGAC7t+MFbQgtk0Ayps4FZagOasXJ/8XPYCNdwNQNfBoSCiRiN5Y2YjBQE u5Z7Bwvk= X-Gm-Gg: AfdE7cnCb3BfRLBgZSRUD816Rd0TdWXLozP7myirMUd1ooorFZA+Mg/fb5i0iFImT4R QpL7E7nCdV00M4XVIcm/nLhsIrBMS2wHoy2kHWej4RZGnWNdKoSCiN4t2k2qfOcN5cbDGTVVH4J 3a4OeDqtesU1eK3aps0H4VVNkdeNf/AJaSCd26b8ENAOK1b0yeSJAKCvj/MDCmXe4lyiXDPsWGJ OsgpCnsx1kWrS4EJasE0VtG7CB95CDJ3ktjBcca/u1xoEdU7WJ/gVq9aOIstKjLPllxQLn0byab rQrHlT1GEz2A+wrjwnEqod/SFKJxH4MXMyP1tBLFLl+OIFYOLOEupjN0l3T0iUxax9jdH/KojZL neWra0c0zh0ejC9l2Q6Gj0vAw0UoRNdgbc/ze/n+ZX5eEvBDFMvWCNEN2axWdeZE0QV5QABqXDf A/LCIdFv7HLbhsYRr5DCrV22XPppJv9HDkEOEMVMF0NhCIqew= X-Received: by 2002:a05:600c:8486:b0:493:e365:7630 with SMTP id 5b1f17b1804b1-493e6844d66mr85204815e9.14.1783592718547; Thu, 09 Jul 2026 03:25:18 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47a9de1d91bsm55097033f8f.4.2026.07.09.03.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 03:25:18 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Breno Leitao Subject: [PATCH RFC 0/2] workqueue: Make alloc_workqueue() unbound by default Date: Thu, 9 Jul 2026 12:25:08 +0200 Message-ID: <20260709102510.180513-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This is a proposed change about the defualt behavior of alloc_workqueue(). Currently we enforce the use of WQ_PERCPU or WQ_UNBOUND. The pourpose of this change is make the default behavior unbound so that calling alloc_workqueue() without WQ_PERCPU results in an unbound workqueue. After this step it would be possible remove WQ_UNBOUND from every alloc_workqueue(). I tested the code with a small crafted driver, and to me it looks good. Do you spot something I'm missed? Thanks! Marco Crivellari (2): workqueue: Make unbound the default alloc_workqueue() behavior docs: workqueue: Update WQ_PERCPU documentation Documentation/core-api/workqueue.rst | 3 +- include/linux/workqueue.h | 8 ++-- kernel/workqueue.c | 68 ++++++++++------------------ 3 files changed, 30 insertions(+), 49 deletions(-) -- 2.54.0