From nobody Mon Jun 8 09:49:07 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 60AE63F39EB for ; Thu, 4 Jun 2026 10:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780570438; cv=none; b=HIzdYidHezISm+BI4AOxAKvn3odHS59Yk0+8CCRU+Nl4ba/exWyIBDdxDzY3MdQQnbB1h5W7adsQgTB//luIEWNb3fq+L3o1dEHL8r1C96+SYMhTM82g7nMhM3btRTUjyM9iMt+8gMzAdoygmtUn1T1LaQjIq4iX0IuEXjew0V0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780570438; c=relaxed/simple; bh=Io9ITUXSj0LTQnMufvmsQ1CkkL5Mo1qd632MU+iM8n8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Bp+Yi+zWsci6/dSeGZqZ4WBj/t2mFNHsWu0J9HkfrcDo99hrtPMBvWRtt2+fLnKj9k3idoboYskdf7bLYiRLlcsv3jnVfPhaJWciFrzjxdCLJfCJzKJtf07oGSLclKoWRXoSPYHinirGwVja5DUi88RohL3rkmoEbFO1KpClesk= 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=Ky1x4Zy8; arc=none smtp.client-ip=209.85.128.44 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="Ky1x4Zy8" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-490b613a17bso5410845e9.3 for ; Thu, 04 Jun 2026 03:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1780570436; x=1781175236; 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=hv3p41LzNcNXVGo+Q2K308cugCyQNysAliX7a7EgUho=; b=Ky1x4Zy8/M/bCodGBFayfM1b0lVEoxJ7Uu3bGrfetz8Lwb0yJ7OrL4VDDj08uDG4Fu LmJdc12eArui3KbDe2fqhTD1k8DWKTX9yyOZgSGgqspfxZ1VM+uo6ogQGEEv+wXzlBAf l9of+VL05Y4E9KSOe2X+spYhG6b08cTb2ftZAvS06N/sAEuAUY4lGGZnzXW+vI7uYw5D CiI+if2HutpN6Bf+QSBcWVaoUYhdAbGL3hHhUJvz/fGhjlm3sHC+oZlHc1/Lo+mSeC04 v8LsmIrxDEAQorNx3KYWqu2UJkqVCaYT0c1LPjQAORkZCorH8owRrmQriRSXVlIGnmR2 lsog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780570436; x=1781175236; 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=hv3p41LzNcNXVGo+Q2K308cugCyQNysAliX7a7EgUho=; b=JtFl94Qf+61l7JY5gdb84c9ikP6WHTq1ZOgoH2HZDRTihaocZO2DOvhEW51uUqaKK2 NvrT+D81yy/Uavfyrn/mxgmvNtBwBKTJejiy8uP/ssfX+qYKDiMVlJ3ESbwK3nVDUY4W CpjcqDauZm1efZcU17WovWs1WsOdyeOWNdtPEhcFJuGgZPjDSdhy1r7WK3chp+EK9f/5 kjmaD1L/fCmasfR1LyOkS5ot1/6jYmvaemCwKEYHEBPbn8BqOjG+CE/fEJ/WDTDY2TQ6 Bx5asYzCywxi1WAHDMIX3iBWMKT9CO6++m0O7ivNJ/l5ZIUzQkB2suWPGNRJ+nkCJYRJ /OFA== X-Gm-Message-State: AOJu0YwgYQyUhGHq8DgjCgZSJ6+fhdCpSTqJB3YiK8gL+A22kvQ9cYw+ 7wSeLHeG9vmOxa8TEXaqNunSM6TiFFL7a+vY0ycQP/cof+xtJcqDV7BKmsKwVEttXVJk1Qo/+d/ UbPbZ2bA= X-Gm-Gg: Acq92OFkAk2RIEJbTZUmSvhvtoEy9H6qBNmLwjXSmoOhDRnPs/YtuC2HPlFC3gY7LJR K/34fxohl1ukISXKKzLnNVrfkx5XYvqxneGH4+3nJ1/QM59PNM4I//6nTXI4ITuMj1/A+WMHw2n VZeIr/9ePkrNE5oWFv6hxrruTUfQ6pROqyKQRZfl9CGX8B+axEql/l1DzleocKuwvlUFB7sNqjX YA4YPHRqCXbKjNrq1dJZXjzCgn2TX3AM8u992vcB/W+UcnyNLoyrRuybZiw0yg/iYUzW2puHduf J0Y1bEndXw/b/xgdGpWT8c+JqC0+cwBgCaVZvz7BDkBMptl6xuv7JgePRK2+FBmJMZ5Rj2CwsyY Zphu53ib1bQEuqzJvpnnZjZLPf03YmqiukRZ4QxmlN2JvpxHA+69TcVQ3XpAwrFr1Q9IxqrK0EY eEb/VQIR2xxjCDhHxysVICCPehdUZ93/xYCckvG+4yInaVagM95zNIquwTvQ== X-Received: by 2002:a05:600c:1f96:b0:490:53d3:47a9 with SMTP id 5b1f17b1804b1-490b5e7962dmr116193935e9.3.1780570435822; Thu, 04 Jun 2026 03:53:55 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490bc39def5sm58181695e9.5.2026.06.04.03.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 03:53:55 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Damien Le Moal , Jens Axboe Subject: [PATCH] block: Add WQ_PERCPU to alloc_workqueue users Date: Thu, 4 Jun 2026 12:53:47 +0200 Message-ID: <20260604105347.168322-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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This continues the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue flag in: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The refactoring is going to alter the default behavior of alloc_workqueue() to be unbound by default. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn=E2=80=99t explicitly specify WQ_UNB= OUND must now use WQ_PERCPU. For more details see the Link tag below. In order to keep alloc_workqueue() behavior identical, explicitly request WQ_PERCPU. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Reviewed-by: Chaitanya Kulkarni Reviewed-by: Damien Le Moal --- block/blk-zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 6a221c180889..bea817f3de56 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -1924,7 +1924,7 @@ static int disk_alloc_zone_resources(struct gendisk *= disk, goto free_hash; =20 disk->zone_wplugs_wq =3D - alloc_workqueue("%s_zwplugs", WQ_MEM_RECLAIM | WQ_HIGHPRI, + alloc_workqueue("%s_zwplugs", WQ_MEM_RECLAIM | WQ_HIGHPRI | WQ_PERCPU, pool_size, disk->disk_name); if (!disk->zone_wplugs_wq) goto destroy_pool; --=20 2.54.0