Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7697137rwr; Wed, 10 May 2023 11:16:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4htf0bGGLy7L8MIMmcUiQWa//Bwd9b1PUDRdJ4qckhHF+TSVl8ETYgikzc5DpL7EQmHSXx X-Received: by 2002:a05:6a20:2594:b0:f0:a8e7:bbee with SMTP id k20-20020a056a20259400b000f0a8e7bbeemr21339154pzd.1.1683742585771; Wed, 10 May 2023 11:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683742585; cv=none; d=google.com; s=arc-20160816; b=GzfzXA+2sMnim4Z7B01buDATJ6qruRZ23sTKhmuhNiH9/1Lzsb+sWrwRvV1QDcYQCa dEk0B1ZvDVVnoCSZRCV6WgnZ0PcAEeIpees/aEi9nnWka5R6gJ3Gkw6w5CLBd145KoA1 afvkZVc+37nSr6N/6jsA5ZuBK4w9Y121kt8K5R2zjA9Q5snBkKZSMgZj/XXAyHk3JdI+ 06gaz0yuFqeooPsDyMS8rHrxyrL/de+6CfXq9gFflVLBOd2ZDQJ49OC0/iBCc5eA+osp 9SJFIdtB1adGUI+EbLYrAVT1/RSz8ilZe9Cxre86kmaG6hIXO2Y/0n8RNVr+ddZUiQ3J AqJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tiygZOTM/QauPyCMixB8V7aM36/db24ouJqobVB/VFw=; b=bJCfxXf0av2RP8oN/q2nQtdzDBtJ8cfu7Do7Muxm5SnWGGmov3piXovucGG4MKVl1o 2de7I0KW2xEoymNarE5FnLcx0VXjv5FTrflRR1VRCmB4BAu7yHpm7DIONcGjzQ7FQ+g1 BmDyvNjBFhXDy0hrht5Fbiwhr5UE6Yp2oueNJCKG5HG5MnbG9G3Bh0StnW2Tdlygkk6q JBg4BRjTB1+Ru+FmPsL3ppJKMm4eRYnm1gwFk4jlj3cqRRYex9/HYLuJBDS70drhkW1j 4yFC2dXvGe1Rzd7X94BPCml0uXJ031o4eh7RFGbugBE8qsVtVsOFcZZYO3y+PXrotvce Z5BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YxgWqyd+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a639314000000b0052c96dcaa84si4514519pge.28.2023.05.10.11.16.13; Wed, 10 May 2023 11:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YxgWqyd+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbjEJSKB (ORCPT + 61 others); Wed, 10 May 2023 14:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjEJSKA (ORCPT ); Wed, 10 May 2023 14:10:00 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7824A5B80 for ; Wed, 10 May 2023 11:09:59 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-24e14a24c9dso5474031a91.0 for ; Wed, 10 May 2023 11:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683742199; x=1686334199; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=tiygZOTM/QauPyCMixB8V7aM36/db24ouJqobVB/VFw=; b=YxgWqyd+r+99dFYRRgD00VWEy1qOcxTAuAHqi3IHHkiXCGqMTNVXNDe3PLHp5+B0xY /AbjGykFWXc4vvD72bmluzjmewD2tJyMcp6bP7Pwxrbi+Ql4rE/pTyHebWfu+hjXDrjj eNTV5uGAgwvC/P/nMVz1q1n4T8jWN2QLdSaMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683742199; x=1686334199; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tiygZOTM/QauPyCMixB8V7aM36/db24ouJqobVB/VFw=; b=a4tb1o5DmN+TXkg/UoqanE3fbF2tVyDmz7lDKLhzyLlbRbGd3y5KHbC3Bwzhz+eWbj Lm1OsZLTMP1AHVOsOLv0wTQ9VS7dtr3ARSafKC/ZoI/aKZ0+sXOfJYfyIkKkhEBNG7Ks ElMfQWTQwM0XaYzcnbircjg7ssM1d7GmGEK7FzMQRbGxoegkwFFicKlCd5CHdumK4CD7 24aS3BZh1yjl9lTogFn9lhCvnC37h432zKyyeIE/a3qPj5sSj1tSHRpfxw1fu6CdfNA2 +e4V3g55NOfX74KgqILPn7jtkxT6PTDb/JJJHnEQDEnOLU/ug5JW/bx6ZR2/+uof2n8Z TxGg== X-Gm-Message-State: AC+VfDyqfepZyoyJBPsnaKKPIL1KjpZPW0GEfu0f7/SegVw+6NxFAnMN DcFHLRQykVe1yVmXJ+cUlfYR/Q== X-Received: by 2002:a17:90b:1296:b0:246:af1f:62ef with SMTP id fw22-20020a17090b129600b00246af1f62efmr17995931pjb.5.1683742198966; Wed, 10 May 2023 11:09:58 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:17a2:4d38:332d:67a0]) by smtp.gmail.com with ESMTPSA id o3-20020a17090ad24300b00246be20e216sm13725577pjw.34.2023.05.10.11.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 11:09:58 -0700 (PDT) Date: Wed, 10 May 2023 11:09:55 -0700 From: Brian Norris To: Tejun Heo Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, kernel-team@meta.com, Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 02/13] wifi: mwifiex: Use default @max_active for workqueues Message-ID: References: <20230509015032.3768622-1-tj@kernel.org> <20230509015032.3768622-3-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509015032.3768622-3-tj@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, May 08, 2023 at 03:50:21PM -1000, Tejun Heo wrote: > These workqueues only host a single work item and thus doen't need explicit > concurrency limit. Let's use the default @max_active. This doesn't cost > anything and clearly expresses that @max_active doesn't matter. > > Signed-off-by: Tejun Heo > Cc: Amitkumar Karwar > Cc: Ganapathi Bhat > Cc: Sharvari Harisangam > Cc: Xinming Hu > Cc: Kalle Valo > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: linux-wireless@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-kernel@vger.kernel.org Reviewed-by: Brian Norris I'll admit, the workqueue documentation sounds a bit like "max_active == 1 + WQ_UNBOUND" is what we want ("one work item [...] active at any given time"), but that's more of my misunderstanding than anything -- each work item can only be active in a single context at any given time, so that note is talking about distinct (i.e., more than 1) work items. While I'm here: we're still debugging what's affecting WiFi performance on some of our WiFi systems, but it's possible I'll be turning some of these into struct kthread_worker instead. We can cross that bridge (including potential conflicts) if/when we come to it though. Thanks, Brian