Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757225AbcCCIbt (ORCPT ); Thu, 3 Mar 2016 03:31:49 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36548 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757169AbcCCIbp (ORCPT ); Thu, 3 Mar 2016 03:31:45 -0500 MIME-Version: 1.0 In-Reply-To: <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> <56D7F27D.1040702@mellanox.com> Date: Thu, 3 Mar 2016 14:01:43 +0530 Message-ID: Subject: Re: [PATCHv9 1/3] rdmacg: Added rdma cgroup controller From: Parav Pandit To: Haggai Eran Cc: Tejun Heo , 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1011 Lines: 18 On Thu, Mar 3, 2016 at 1:44 PM, Haggai Eran wrote: > 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? Yes. Its suitable if we continue with newer API to drop "num" entries. Or I will have make minor modification to support that in cgroup.h. There is no variation as task_get_css_many, but its minor change anyway. I saw slept off yesterday night, saw today morning. Will test over weekend and wait for Tejun's opinion if there is any.