From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751764AbcFWVNa (ORCPT ); Thu, 23 Jun 2016 17:13:30 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33064 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbcFWVN3 (ORCPT ); Thu, 23 Jun 2016 17:13:29 -0400 Date: Thu, 23 Jun 2016 17:13:26 -0400 From: Tejun Heo To: Daniel Borkmann 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 Message-ID: <20160623211326.GK3262@mtj.duckdns.org> References: <1466630252-3822277-1-git-send-email-kafai@fb.com> <1466630252-3822277-3-git-send-email-kafai@fb.com> <576BAF07.4020302@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <576BAF07.4020302@iogearbox.net> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks. -- tejun