From mboxrd@z Thu Jan 1 00:00:00 1970 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 D9B3343DA4A for ; Tue, 5 May 2026 12:41:30 +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=1777984892; cv=none; b=MX8xpjtVZH8h17XlGTpcmxrni35Xezo+mNmSc4Mbnne0dBLewrEHxJygAc3WnDY04Q+jw0Z00zlGUtVIzEJ21DjEadnNqDfH7ppZbL1sdh9YnJd6knGlNDhZvs3x0sUUQKSt2m4jpZHjBJsINE6h4QuNes9N2tT24rQB5G89mOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984892; c=relaxed/simple; bh=DDnH9XT9fhzdEtGpzdt+pViTNj8Myl/CaJC2vpCtFRo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TFK0y1fD4cJcK1NInAA43CLEPYA0hgysb/3ueocj5cHcTtUjrOevpBeArvXWDAvBJmGD23Un8HPlAxEw0oYPit6YFmaRcNNC//ismU49pRAElyUKJnwtQGq8SNZoJFazABsD+IZ/Kh792fxc08tNmKwRXKouQYFUm9pC9PZ4Jes= 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=XjTB+gwU; 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="XjTB+gwU" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-488ab2db91aso62168515e9.3 for ; Tue, 05 May 2026 05:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984889; x=1778589689; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fd0RmALr1j8PdyXEy2klnjkBilEJrpt0t612Vmw4Nvc=; b=XjTB+gwUoHANbRMwM/NosLGt5TYl2ZWbz7rWyCwel/RfrlCFliJyD3w9PszcjDaKPK 5KXAGrQUVuTKFe13A9MVRmAiU3ZDPSj5ZgjXY6dRhsgF9TURnTS4UpIzPUHj5LNNBMuN Ys8aGg1k2TvbzCjSaPvV4gfzqDzvvuDzwUt2+MrL/d1TuvKscDbgw6nJcZi95AfAvD+F 7i9VjH9jPpH3coMn7E7/9KlZZRWKlYvvnex8YTWbqwGxbg30PDL/tAvLV7IZAQQCarCa qcHx1yBHbMg6twW4RBFTvO5N9MfaDRPbvwSRhY78zGy72SKlwY9JoUxFC4J3teaMY35E eO9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984889; x=1778589689; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Fd0RmALr1j8PdyXEy2klnjkBilEJrpt0t612Vmw4Nvc=; b=as1/TOkp64ydPk61nWu6EGwcctbU+aP8OgoN65a2deQgHGeCgcKIqclEAsKrdptPyc +iRKtjKwdbdXMu8Snjx+bGB9O7QoeIoj72NgLgmJXD/9xqG4FJ3c094T74CNOk1HGS/5 3oZ8HyIxS7gK5DMD4Fo1+lp9mPyCbvBEK2eqWE73qUWSj1b8Fjfo1XehueZUJaKpLB6u Tyk7mvrUwWWeSosNoSgpdtKGxSoKpo80JC2xCo+wPCREm4DNvStSqjNyS7ppK7M/bkhW tEKNk0uoedbMFYhKnS5XcaqAVdlgYw8B5wo1wsSdf2XfikqrXaqrkEXeCoqAXORee1Oe RPLA== X-Gm-Message-State: AOJu0YxsDnXk5iY1rjOQXL8YJ9hXSijRWVQsrsW/Krmh6T3rtzEtAYpk oX4nfLCtxQrHLxb2vBCgzvmtnerS+d372A+AAS6vdzUK+SOV/iPwL8PSMihzVWluRfA+T0JCd9n 5bTPytSw= X-Gm-Gg: AeBDieukJkcyrduhEJYTg6q+63C6ruoWyJlBkstqnI8OLRxzhEGAwRxNUrAjaBLlERl 6VcOWDKVmbH/7orvd305YiGvD2crDGcsPz4yD1TUv5H/VBF2uXM3CoXbZFHSb4k9vuFHYzsqrP1 obbiJYNFdZa87hh+2DTfSN2HMTnvSayq/x82Hl8F6B5TseAyckOP2nxY/1xiNcZksfSLISErA/O OieMsWBBeaULOHUPZ2qhFzhjMKz4Kzc16UXhdq8Xr1bQq7I1eXm+/0mCBwLtL66QZNtvtUvoyYi A4Dl4LF32WDKimoiefRwUDZY+XCOq2IKqEHmz2NYm1nekbLatn4T4Mhl5qeKrVmGcthsklzCztv ywBXEwgFuZeat0Rb82VMWsU2x6RBLSGdUyXzrw9pIgiYtLYuinTyIJnvoWi1T95bs3pDgg3Q3Tg NtYB/4SEVLWVWq4BYcoUx/cSKtOfGJl3cSj56F X-Received: by 2002:a05:600c:c174:b0:48d:1a94:56c with SMTP id 5b1f17b1804b1-48d1a94087dmr45302095e9.18.1777984888907; Tue, 05 May 2026 05:41:28 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:28 -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 , Matt Porter , Alexandre Bounine Subject: [PATCH 5/6] rapidio: rio: add WQ_PERCPU to alloc_workqueue users Date: Tue, 5 May 2026 14:41:01 +0200 Message-ID: <20260505124113.214297-6-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-1-marco.crivellari@suse.com> 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 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’t explicitly specify WQ_UNBOUND 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. Cc: Matt Porter Cc: Alexandre Bounine Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/rapidio/rio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index 0c175e6d424f..f45e58b0971f 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c @@ -1994,7 +1994,7 @@ int rio_init_mports(void) * TODO: Implement restart of discovery process for all or * individual discovering mports. */ - rio_wq = alloc_workqueue("riodisc", 0, 0); + rio_wq = alloc_workqueue("riodisc", WQ_PERCPU, 0); if (!rio_wq) { pr_err("RIO: unable allocate rio_wq\n"); goto no_disc; -- 2.53.0