Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1694919pxj; Wed, 19 May 2021 11:39:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycuiQjWaYVXAAkracL5DD15lkZsXOig8MWPJwezHAvx4rHy5YlEl4wpG2zCF2gb1wDmxx+ X-Received: by 2002:a17:906:2dcd:: with SMTP id h13mr537457eji.41.1621449562637; Wed, 19 May 2021 11:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621449562; cv=none; d=google.com; s=arc-20160816; b=IwUwhd7UeZazR7IJNoYYBXE0CuZMfBpMYIx3PDAKq7AUK8dmuLLGZr1Fnb8WQgRJ1g o0qNXEmVh7E+hB7xcZWY9lWF8g1uW3A4oBDxSnvOt+/pelUjicxmQ0zGmp1+LGX3kiGd i5F/6WMiosDfJjCL9Wic3K7r1O4Hky+iEuhOQn6xdT1pkv5r9AL7t6acNxHlrLhfK/U/ FF9YYEvF+t0+oJmO+s2zNTz3+GgVFWsbbqixXnoxkkuFiVb51ioYIYTj1g11qhrSnUZ+ K6j4CzY21sU/keT3t8PHbaKjD3qrGhrj8pN4ZjF3JrZ0Y8tsgwO2Sse+f57UuyCxnad5 mTnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=OcOBQoPHRZwUqgAv23Az6sbpsFYYr9MWtPojMc2GtPo=; b=gXL+H0aLyYtYp6geKzQyqN63Jh6dvL9EKjNAAYniI/BCeGP0C/yr5sYKcmBmEIjcAL Pvg4LXhbnLF+S9mcmdAjeRAjXZy14QC/JYMBr48LoYduiMisZ9G//IRz/fAr1C2QL5vQ aAIQPEKSAXD2SIjA74ElIKcaro0g78DJ7+B7eDDFu4sj/ah/cZnZ2aA2ZwNVQ7TIm8Fw A9qAO16VZCb80V8Y9SoacpIpi7iAD1fCYoX/VDRQruI0hDmpUGrN9AWHKUhSoEbrZdej scqF55/3Fliz7u50klmMpNrhKlbFLqsUn88ua+Qma3JczVErJanZg5d2zgHUAqwUPtgY ncJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=IIsmxq3E; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv19si478063ejb.257.2021.05.19.11.38.57; Wed, 19 May 2021 11:39:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=IIsmxq3E; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242673AbhERWCQ (ORCPT + 99 others); Tue, 18 May 2021 18:02:16 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:44821 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233561AbhERWCP (ORCPT ); Tue, 18 May 2021 18:02:15 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1621375257; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=OcOBQoPHRZwUqgAv23Az6sbpsFYYr9MWtPojMc2GtPo=; b=IIsmxq3E8fvTebWmAMcKiMuYMH/RBu45Dt8awhU5Om2q2QrCx1LuNJgvfXoOpibNLbgsmjHs N/YXT5hLoyLz/94R4c7KUDIthTFerV3hpw1FmfMqt4Bc59JR3u/+rUJ3hxbB5WTxtzkcF3Oy zN+MT4z4dLaObzb3R9183zPoRI8= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 60a4390d8dd30e785f852f6d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 18 May 2021 22:00:45 GMT Sender: jjohnson=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E7AFEC4338A; Tue, 18 May 2021 22:00:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jjohnson) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5FB86C433D3; Tue, 18 May 2021 22:00:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 18 May 2021 15:00:44 -0700 From: Jeff Johnson To: Greg Kroah-Hartman Cc: linux-wireless@vger.kernel.org, Kalle Valo , "David S. Miller" , Jakub Kicinski , Kees Cook , Jason Gunthorpe , Chao Yu , Leon Romanovsky , b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jjohnson=codeaurora.org@codeaurora.org Subject: Re: [PATCH v2] b43: don't save dentries for debugfs In-Reply-To: <891f28e4c1f3c24ed1b257de83cbb3a0@codeaurora.org> References: <20210518163304.3702015-1-gregkh@linuxfoundation.org> <891f28e4c1f3c24ed1b257de83cbb3a0@codeaurora.org> Message-ID: X-Sender: jjohnson@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-05-18 12:29, Jeff Johnson wrote: > On 2021-05-18 09:33, Greg Kroah-Hartman wrote: >> There is no need to keep around the dentry pointers for the debugfs >> files as they will all be automatically removed when the subdir is >> removed. So save the space and logic involved in keeping them around >> by >> just getting rid of them entirely. >> >> By doing this change, we remove one of the last in-kernel user that >> was >> storing the result of debugfs_create_bool(), so that api can be >> cleaned >> up. > > Question not about this specific change, but the general concept > of keeping (or not keeping) dentry pointers. In the ath drivers, > as well as in an out-of-tree driver for Android, we keep a > debugfs dentry pointer to use as a param to relay_open(). > > Will we still be able to have a dentry pointer for this purpose? > Or better, is there a recommended way to get a dentry pointer > NOT associated with debugfs at all (which would be ideal for > Android where debugfs is disabled). Answering one of my questions: The dentry passed to relay_open() comes from debugfs_create_dir() which is expected to return a dentry. Would still like guidance on if there is a recommended way to get a dentry not associated with debugfs. -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project