From mboxrd@z Thu Jan 1 00:00:00 1970 From: "tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" Subject: Re: 3.5-rc3: BUG: Dentry still in use (1) [unmount of cgroup cgroup] Date: Wed, 27 Jun 2012 16:02:30 -0700 Message-ID: <20120627230230.GT15811@google.com> References: <20120627182903.GP15811@google.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=cNdIi+XGR2adaE9sd621UAKaK9bu88bAZxhJagXeYII=; b=oIAdJkY7Mraa021AHtQowl83p4lDkGNBRrcasgBVrXTWzcPe2d5wPhcuRSO9gBjWkz Z0tEda9P0JTuKFizk8T2M/b52LVBtF6HKslku+YhofkDSRBRcy82A7SuvUQ4yYhTgbwO fEPxDdvGyrDomTJZiYy606DmTn5DhdPcPdJh4HyCg0OgqNRoeIvYjf9wEnKP0fNPh9Yx w38XFCW0csNriLbqwFUCGqo4lp//nlrZ2LeQTVWwzSQsYFX8e8RfPNDM8ZlINZ8jfJ3H vzupPeHT6zk2sSIT6R37Jo+OWYHncgKftVw9S7cWi1O69O+ZizicRi0NgQFQ3iwy2Va6 yWWQ== Content-Disposition: inline In-Reply-To: <20120627182903.GP15811-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: shyju pv Cc: "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Sanil kumar , Masanari Iida , Li Zefan Hello, Does the following patch make the problem go away? Thank you. diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 2097684..f9556cf 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -3644,6 +3644,7 @@ static void cgroup_event_remove(struct work_struct *work) eventfd_ctx_put(event->eventfd); kfree(event); dput(cgrp->dentry); + deactivate_super(cgrp->root->sb); } /* @@ -3770,6 +3771,7 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, * destroying subsystem state objects. Let's take reference to cgroup * directory dentry to do that. */ + atomic_inc(&cgrp->root->sb->s_active); dget(cgrp->dentry); spin_lock(&cgrp->event_list_lock); From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757855Ab2F0XCi (ORCPT ); Wed, 27 Jun 2012 19:02:38 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:51392 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756828Ab2F0XCg (ORCPT ); Wed, 27 Jun 2012 19:02:36 -0400 Date: Wed, 27 Jun 2012 16:02:30 -0700 From: "tj@kernel.org" To: shyju pv Cc: "linux-kernel@vger.kernel.org" , "cgroups@vger.kernel.org" , Sanil kumar , Masanari Iida , Li Zefan Subject: Re: 3.5-rc3: BUG: Dentry still in use (1) [unmount of cgroup cgroup] Message-ID: <20120627230230.GT15811@google.com> References: <20120627182903.GP15811@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120627182903.GP15811@google.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Does the following patch make the problem go away? Thank you. diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 2097684..f9556cf 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -3644,6 +3644,7 @@ static void cgroup_event_remove(struct work_struct *work) eventfd_ctx_put(event->eventfd); kfree(event); dput(cgrp->dentry); + deactivate_super(cgrp->root->sb); } /* @@ -3770,6 +3771,7 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, * destroying subsystem state objects. Let's take reference to cgroup * directory dentry to do that. */ + atomic_inc(&cgrp->root->sb->s_active); dget(cgrp->dentry); spin_lock(&cgrp->event_list_lock);