From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haggai Eran Subject: Re: [PATCHv9 1/3] rdmacg: Added rdma cgroup controller Date: Thu, 3 Mar 2016 10:14:53 +0200 Message-ID: <56D7F27D.1040702@mellanox.com> References: <1456859137-13646-1-git-send-email-pandit.parav@gmail.com> <1456859137-13646-2-git-send-email-pandit.parav@gmail.com> <20160302173949.GG29826@mtj.duckdns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Parav Pandit , Tejun Heo Cc: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, lizefan@huawei.com, Johannes Weiner , Doug Ledford , Liran Liss , "Hefty, Sean" , Jason Gunthorpe , Jonathan Corbet , james.l.morris@oracle.com, serge@hallyn.com, Or Gerlitz , Matan Barak , raindel@mellanox.com, akpm@linux-foundation.org, linux-security-module@vger.kernel.org List-Id: linux-rdma@vger.kernel.org On 03/03/2016 05:18, Parav Pandit wrote: > On Thu, Mar 3, 2016 at 1:28 AM, Parav Pandit wrote: >> On Wed, Mar 2, 2016 at 11:09 PM, Tejun Heo wrote: >>> Nothing seems to prevent @cg from going away if this races with >>> @current being migrated to a different cgroup. Have you run this with >>> lockdep and rcu debugging enabled? This should have triggered a >>> warning. > I am able to reproduce this race. Looking into how to address it. If I understand correctly, task_css() requires rcu read lock being held. Is task_get_css() suitable here?