Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1614162pxb; Thu, 4 Feb 2021 18:39:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDFv/dflkxVEpi9V4g/shkOYt7azmlmYMdwJc+xdnvsH2RPhwHB9loSG+vgj+Els9arU+R X-Received: by 2002:a17:906:cc50:: with SMTP id mm16mr1973852ejb.366.1612492740883; Thu, 04 Feb 2021 18:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612492740; cv=none; d=google.com; s=arc-20160816; b=Wtdt6DXZ1v0tOOmCk37mnLnNS96dkTA9KiiMowkRaVBqQc0VlS1m0dql71tEhfQbWf xeWgUEYsiMThKyNiW5fA0osUWiFU8X8aUrqTi8srZlWpH4d+iGAFLWmHOtV83WhLleaL fCbD0S5TeVHbizmi0EhKSPaHfSXP/KuogrLkfDy/BiP2FZ82fzdS40Tdj8Zqp3txY7Kw dsN2OvnE0NUHhxzz0isSuc0FyhH4hzJ6C3591j3vzPOP46slqYBoAXEbdLj8dmpIQ5gY v6qOLePB2WCKfd1J94CaG9CNBv6kSto4KqMQLHe/HwsQG1CDuFSJIHiTeBiQgTWqcBYS HpVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ciHjs+jRrxK7UOBz+1nbSJbYdNtvt9f7zqlIzJkiFvs=; b=Myjo84fMxob4RlPzml4eiVu7vPSqEkC0mwoZwO+lhjqpaODeWB6ShspeQxm+pXhka3 hgXRzxFAEN9cSC3ePCGc8y2DQTfp25/c9G+0ALsvOA3XHU4ks6D4bMsdnp47MEPfl+5g aR1qvUXBT2JqMhWp/RYDLi/D8niGBm8r/7OGK1+Jrp1TP7ja8p1rbBMTIiqjLyIgDi72 9M9MSKcSbhZ+jf6pl1rzpjadsd63lseyYU8W+6Nah0rYLVCnDR5VR4Y8/Q39Bp1n4D7A Iq4aE8ATqQfteL3oBWCu9VSwjkz/i3xmqlexviC8d7sxt+/OsTL2YeqevH9EeiUA6JBQ 2HWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=hnpcq40T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 hb20si1048220ejc.676.2021.02.04.18.38.36; Thu, 04 Feb 2021 18:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=merlin.20170209 header.b=hnpcq40T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbhBEChk (ORCPT + 99 others); Thu, 4 Feb 2021 21:37:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbhBEChi (ORCPT ); Thu, 4 Feb 2021 21:37:38 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DD33C0613D6; Thu, 4 Feb 2021 18:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=ciHjs+jRrxK7UOBz+1nbSJbYdNtvt9f7zqlIzJkiFvs=; b=hnpcq40Tto7xSO201H6yoUJZQW 7+k0d0rFKmVmR4ELTYvU2IVB/Jo/q0YQ81rwoDxA31OcpKEMQq4r3XNUjDJ8NkiFsecwwmLbqLB2S nNUjI2aLKw1aYyjpkFt5uLbCZ26ynXK0n17tqcq5T0DEvT859URB4Tgp5f63PBdQhyEqINdMxjVqi gjtzh660wsK2aprk5pKQ8XPMRwuhnNGxlivsyXAJfdlY9yxLNaEwJMic8bpcq5K6K+KlTGH+l8ChV vZ1+x0mMOmMRGJ+mbOTVFIFT8jm7O3SR4Z3h651a4pLq+EoO1+xjgakzxTOBul4M79Ii9m0H+30n2 G89HxS0A==; Received: from [2601:1c0:6280:3f0::aec2] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7qzN-0008VE-Go; Fri, 05 Feb 2021 02:36:53 +0000 Subject: Re: [PATCH v3 2/2] dmabuf: Add dmabuf inode number to /proc/*/fdinfo To: Kalesh Singh Cc: jannh@google.com, jeffv@google.com, keescook@chromium.org, surenb@google.com, minchan@kernel.org, hridya@google.com, kernel-team@android.com, Alexey Dobriyan , Jonathan Corbet , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= , Andrew Morton , Mauro Carvalho Chehab , Michal Hocko , Alexey Gladkov , Anand K Mistry , NeilBrown , "Eric W. Biederman" , Michel Lespinasse , Bernd Edlinger , Andrei Vagin , Yafang Shao , Christian Brauner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org References: <20210205022328.481524-1-kaleshsingh@google.com> <20210205022328.481524-2-kaleshsingh@google.com> From: Randy Dunlap Message-ID: Date: Thu, 4 Feb 2021 18:36:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20210205022328.481524-2-kaleshsingh@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/4/21 6:23 PM, Kalesh Singh wrote: > If a FD refers to a DMA buffer add the DMA buffer inode number to > /proc//fdinfo/ and /proc//task//fdindo/. > > The dmabuf inode number allows userspace to uniquely identify the buffer > and avoids a dependency on /proc//fd/* when accounting per-process > DMA buffer sizes. > > Signed-off-by: Kalesh Singh > --- > Changes in v3: > - Add documentation in proc.rst Hi, Thanks for the doc update. > Changes in v2: > - Update patch description > > Documentation/filesystems/proc.rst | 17 +++++++++++++++++ > drivers/dma-buf/dma-buf.c | 1 + > 2 files changed, 18 insertions(+) > Acked-by: Randy Dunlap # for Documentation/filesystems/proc.rst -- ~Randy