Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648344

Re: [PATCH 5/5] kernfs: add exportfs operations

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 5/5] kernfs: add exportfs operations
Date Tue, 23 May 2017 21:00:01 +0200
Message-ID <tKncd-77q-5@gated-at.bofh.it> (permalink)
References <tK4sV-3eD-3@gated-at.bofh.it> <tK4sW-3eD-5@gated-at.bofh.it> <tKcJQ-65-21@gated-at.bofh.it>
X-Original-To Christoph Hellwig <hch@infradead.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UqARifX9ODmI5f2uqptMUV2TzbW7OiCC+1Y1OEO5xFs=; b=meNQYBdeV75ibvEKdf7lwJ7ElS4obEFEI6cbZKZf2+GbElUkgb527SJxL/GUVP72lT sFzlmR/yjOtLiJ5p80yFjivzE+J3hujCY6Ys6uZIJFduhcn1uSefUU8knhBr2eVAsnHo i9XxUyuNwK16byAFrs2g0Y39NkuKQSH0kJ9goQFiJzdhfYHmmOst7RvO4UCu/++qPcDQ xZ200QFcJ2d9Ym1XNn6KTRmxv0APACM1jqfCeR0rReP3jiAIbldACPlMOGj6SPZGbkO9 QrnBo1PcVhAiSMLyrnzjzOu9GjJ7nbUxmBwx/iapSRy6r235+dvdiJRUg4snE1o193aP nvew==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=UqARifX9ODmI5f2uqptMUV2TzbW7OiCC+1Y1OEO5xFs=; b=rNeeTpYKCwgiDRyz0QRaN3Sy6BsqiWZq2QyXaJjRqnAYi9Y/Qaprcgs1rTzqEZcE0X 5FbmCki8FMXGjkdUNtktE9sZlZygxMvOhF/xrf69HLEO1B+lEkb7RD95l41Gg/qrIb45 /IlElqMPA3ONOLxQrESH7FpfTpP2s7blu12UUbqa8qe4u2gO+ZjtEgVDe8ZXy6XzB3yo +hLqMQb6M/TiZSCDHhUrWpJSlSa8F6pTqbt/gDiVZ/CoMKYhRj32bK/frVeiuP3X7qSS fOupfkhV9Kx+Csy31UU2/qvWl0+aijf1R6HIVqeiGEZ7YSE6KY8bg5RQHDqGfP4SvNqD S8zw==
X-Gm-Message-State AODbwcDhZ7mh3rKW50TRfHMadJKPLVyr/GMD9pa+JMW7WFpjKyK+Wjgg q3IlE4wNBZKZHQ==
X-Received by 10.129.72.1 with SMTP id v1mr21925197ywa.23.1495565832933; Tue, 23 May 2017 11:57:12 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.8.2 (2017-04-18)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
X-Original-Cc Shaohua Li <shli@fb.com>, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, viro@zeniv.linux.org.uk, Kernel-team@fb.com
X-Original-Date Tue, 23 May 2017 14:57:11 -0400
X-Original-Message-ID <20170523185711.GB13222@htj.duckdns.org>
X-Original-References <cover.1495490800.git.shli@fb.com> <3d3a0860317afa0fb722c1a6df58e04593fc700a.1495490800.git.shli@fb.com> <20170523074019.GC29525@infradead.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1648344

Show key headers only | View raw


Hello, Christoph.

On Tue, May 23, 2017 at 12:40:19AM -0700, Christoph Hellwig wrote:
> On Mon, May 22, 2017 at 03:53:09PM -0700, Shaohua Li wrote:
> > Now we have the facilities to implement exportfs operations.
> 
> But do we have a use case?  I'd rather avoid this..

Yeah, this is one of the repeatedly requested features - a cgroup id
which can be looked up in a scalable way.  We probably should have
added this earlier too as we already have places where we're passing
in full cgroup path into the kernel (ipt_cgroup match).

IIUC, Shaohua is adding it so that block tracing can be made aware of
cgroups but something like this is necessary whenever we try to refer
to a cgroup in a race-free / scalable way.

If you have any other ideas, I'm all ears.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 5/5] kernfs: add exportfs operations Shaohua Li <shli@fb.com> - 2017-05-23 01:00 +0200
  Re: [PATCH 5/5] kernfs: add exportfs operations Christoph Hellwig <hch@infradead.org> - 2017-05-23 09:50 +0200
    Re: [PATCH 5/5] kernfs: add exportfs operations Tejun Heo <tj@kernel.org> - 2017-05-23 21:00 +0200
      Re: [PATCH 5/5] kernfs: add exportfs operations Christoph Hellwig <hch@infradead.org> - 2017-05-24 19:40 +0200
        Re: [PATCH 5/5] kernfs: add exportfs operations Tejun Heo <tj@kernel.org> - 2017-05-24 19:50 +0200
          Re: [PATCH 5/5] kernfs: add exportfs operations Christoph Hellwig <hch@infradead.org> - 2017-05-24 19:50 +0200
            Re: [PATCH 5/5] kernfs: add exportfs operations Tejun Heo <tj@kernel.org> - 2017-05-24 19:50 +0200
  Re: [PATCH 5/5] kernfs: add exportfs operations Tejun Heo <tj@kernel.org> - 2017-05-23 21:00 +0200

csiph-web