From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9695C433DB for ; Wed, 10 Feb 2021 07:50:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1E39564E05 for ; Wed, 10 Feb 2021 07:50:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E39564E05 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3D3506B006E; Wed, 10 Feb 2021 02:50:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 384586B0070; Wed, 10 Feb 2021 02:50:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2730D6B0071; Wed, 10 Feb 2021 02:50:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0030.hostedemail.com [216.40.44.30]) by kanga.kvack.org (Postfix) with ESMTP id 0F6246B006E for ; Wed, 10 Feb 2021 02:50:47 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id CE4558248068 for ; Wed, 10 Feb 2021 07:50:46 +0000 (UTC) X-FDA: 77801586492.26.rate73_10098912760e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin26.hostedemail.com (Postfix) with ESMTP id AFC101802B565 for ; Wed, 10 Feb 2021 07:50:46 +0000 (UTC) X-HE-Tag: rate73_10098912760e X-Filterd-Recvd-Size: 3540 Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Wed, 10 Feb 2021 07:50:45 +0000 (UTC) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 09 Feb 2021 23:50:44 -0800 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 10 Feb 2021 07:50:44 +0000 Received: from [10.2.50.67] (172.20.145.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 10 Feb 2021 07:50:44 +0000 Subject: Re: [PATCH v2] mm: cma: support sysfs To: Greg KH CC: Minchan Kim , Andrew Morton , linux-mm , LKML , , , References: <7cc229f4-609c-71dd-9361-063ef1bf7c73@nvidia.com> <09e60732-6a46-dd00-f9d5-4ef17ee685c8@nvidia.com> From: John Hubbard Message-ID: <2abc0258-d71a-56f2-3682-cc178f3ce4c4@nvidia.com> Date: Tue, 9 Feb 2021 23:50:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Thunderbird/85.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To DRHQMAIL107.nvidia.com (10.27.9.16) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612943444; bh=iNqKH1Wegy4bMKSeTt/OdLSXygaDObEBfKoj2FFuyeQ=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=TG95RuDP7QHPJKOOXQN8PEWJs/F8BoQ7P41GOaT3m7QGHMVwNv7RHUzeQg6U7vWlN SIEDB66Amt+58PB1nQNhsztX+MSYfK87kPEr1R2VnFSDB/eq7u+wkCHuLw+lMkGFR2 RbFY4APtQWV0HZV7A9kUH8TQ59VF7ePzOzVYRAN2zKoKZEyNbJkpwktrbn6xydK4RM wf07embo/TouTNkxvpxH71LbyPQMAldhVi88rbCVZgTgf3siqrl5YCo0bA5JsPse22 u7dJvh2luPxgiSUKxn5THcgi10yUf3vPnwYVwryEEjnWoh9F4sHr96GIVQ5JvH+1j1 xqgNzglWUw7Dw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2/9/21 11:26 PM, Greg KH wrote: ... >> I just am not especially happy about the inability to do natural, efficient >> things here, such as use a statically allocated set of things with sysfs. And >> I remain convinced that the above is not "improper"; it's a reasonable >> step, given the limitations of the current sysfs design. I just wanted to say >> that out loud, as my proposal sinks to the bottom of the trench here. haha :) > > What is "odd" is that you are creating an object in the kernel that you > _never_ free. That's not normal at all in the kernel, and so, your wish > to have a kobject that you never free represent this object also is not > normal :) > OK, thanks for taking the time to explain that, much appreciated! thanks, -- John Hubbard NVIDIA