Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp239198iob; Mon, 2 May 2022 18:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDHOZr29adz38odKZOJMsktg3fLPm77Agh0WrUAN9l+jkLpSIiKiFTOlH+x3t/YzKaOFDd X-Received: by 2002:a62:cec4:0:b0:50d:9030:722c with SMTP id y187-20020a62cec4000000b0050d9030722cmr13842842pfg.41.1651540230127; Mon, 02 May 2022 18:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540230; cv=none; d=google.com; s=arc-20160816; b=Zz3IE7/VGqxBcrJg4N2CqxpxzmmnEwZ8l+03wrVlcYyKUeBMvG/YtmrmpPS4j7F2x7 wHB2OYTwvwcBkE3LBo+Ef+liaUyR5BLLwbSmeR6wPCBEp1CsvmnbmERUVovlDwBuG4b6 NK9SOAsLuW3GjyWrxDHg3RxFmUXt9z0kkeYRB1kqsdg3XRl3AoFdvWX66AdME3ygdF+W Ey93lsVJ6lQNS1J9FAP/GkcWQHk7J2hI7jCQp0n9fwTdrqfUxPA8+CFPZ+hv1cBBRgID l0vN97u/cCcvQIvH7Gk9NMYQ1Qfnowjfcg0cp8AKLWJ1Mpot6guKIN55knOnh/n7Xdfn JEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=68dVFoKL+Zr+BCUgPR1LI1F4rkDV/mszTgSxZ89dMFc=; b=f2ai1wEiSJHStLydz2hp1zRUQV6bYLsekBIhtP5OwezLbUkozHP8AkxDHermkJNCB1 5L8CcMz+LYcOsFNt+lVbVwZEXQ2p8CZQpwX6h8HL/Jd6/n+BfFZgir+QXaMt7p/6eSFv ISmke2A6YgvhCyWL1lU6t2K84TOZPMvyAM9R/jolVMCr0EoFxPStsxPOy7YvLM0uOVMx eXE72pRsbOE+st2nTBGTYVKB6GOjqddMOZiz+zXLFqU10H0QUVovhb+2Q+8DMAlaDFrk xSILBiUwPrEZnATMMTTZEaYr04HZT4aa2Umto7cN2eW3qppfWFp0mMW6QNKn8jFtoYt1 RHeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PtmaEvA8; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id me1-20020a17090b17c100b001d285255f40si988480pjb.32.2022.05.02.18.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:10:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PtmaEvA8; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0E3AD3A5C1; Mon, 2 May 2022 17:52:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379647AbiEBG32 (ORCPT + 68 others); Mon, 2 May 2022 02:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383424AbiEBG30 (ORCPT ); Mon, 2 May 2022 02:29:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 093A363C5 for ; Sun, 1 May 2022 23:25:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B147FB81059 for ; Mon, 2 May 2022 06:25:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1431C385A4; Mon, 2 May 2022 06:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651472754; bh=7Jv9elAuph8QE9yzvniplE6WH4Cn9T32X+kqlly3l58=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PtmaEvA8x5jQ+D3qtf8A74qP4YVWTzEzA9dXyaRjQ55D24trCpp7oHs1wt7xRDBU6 wF2R1fl9kyHGd3MmCn5HFN5TLdFoTR8I3+tflqdcBB+Nr8Z+5rKCW2uXu1G2OoYDZ4 V30skYo5Ol5vYzNVikSPKFHPw+jnIKTyAf9/lhCvcM7E16sL99PyzU20EpLPBZuPOq 0I2CqOgMwdrF/VBP0bX2Am2CS7wtlgjJ6s2UDTcGw/EJH2YvY3RLanverbHic9o1U8 9j/ZlYySxXO1ypg7WvCVPPHtaZfKXepWyMSQTIv6xb+CdeMy18CbHyO193WD70w1Nl TgKOBpht+ToOw== From: Kalle Valo To: Tetsuo Handa Cc: =?utf-8?B?SsOpcsO0bWU=?= Pouiller , linux-wireless Subject: Re: [PATCH] wfx: avoid flush_workqueue(system_highpri_wq) usage In-Reply-To: <3841528e-78ae-c3c4-169a-eeb39714f7ca@I-love.SAKURA.ne.jp> (Tetsuo Handa's message of "Sun, 1 May 2022 19:23:16 +0900") References: <20220225112405.355599-1-Jerome.Pouiller@silabs.com> <20220225112405.355599-10-Jerome.Pouiller@silabs.com> <033f49bc-cc31-7384-7a7c-5d3c45ce9594@I-love.SAKURA.ne.jp> <4557835.LvFx2qVVIh@pc-42> <87fsltd462.fsf@kernel.org> <3841528e-78ae-c3c4-169a-eeb39714f7ca@I-love.SAKURA.ne.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Mon, 02 May 2022 09:25:48 +0300 Message-ID: <87a6c0cuxf.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Tetsuo Handa writes: > On 2022/05/01 17:53, Kalle Valo wrote: >> So now the thread is created every time the module loaded, even if >> there's no device available. > > Excuse me, but what thread? Sorry, s/thread/workqueue/. > alloc_workqueue() without WQ_MEM_RECLAIM flag does not create a > thread, and therefore consumes little resource where there's no device > available does not matter. It still allocating memory which is not needed. To me allocating resources during module_init is wrong. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches