From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752316AbcFWVeB (ORCPT ); Thu, 23 Jun 2016 17:34:01 -0400 Received: from www62.your-server.de ([213.133.104.62]:37157 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbcFWVd7 (ORCPT ); Thu, 23 Jun 2016 17:33:59 -0400 Message-ID: <576C55C0.7040800@iogearbox.net> Date: Thu, 23 Jun 2016 23:33:52 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tejun Heo CC: Martin KaFai Lau , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Alexei Starovoitov , kernel-team@fb.com Subject: Re: [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY References: <1466630252-3822277-1-git-send-email-kafai@fb.com> <1466630252-3822277-3-git-send-email-kafai@fb.com> <576BAF07.4020302@iogearbox.net> <20160623211326.GK3262@mtj.duckdns.org> In-Reply-To: <20160623211326.GK3262@mtj.duckdns.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/23/2016 11:13 PM, Tejun Heo wrote: > Hello, > > On Thu, Jun 23, 2016 at 11:42:31AM +0200, Daniel Borkmann wrote: >> I presume it's a valid use case to pin a cgroup map, put fds into it and >> remove the pinned file expecting to continue to match on it, right? So >> lifetime is really until last prog using a cgroup map somewhere gets removed >> (even if not accessible from user space anymore, meaning no prog has fd and >> pinned file was removed). > > Yeap, from what I can see, the cgroup will stay around (even if it > gets deleted) as long as the bpf rule using it is around and that's > completely fine from cgroup side. Ok, thanks for confirming! > Thanks.