Thread (19 messages) 19 messages, 5 authors, 2012-07-09

Re: 3.5-rc3: BUG: Dentry still in use (1) [unmount of cgroup cgroup]

From: tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org <hidden>
Date: 2012-06-27 23:02:38
Also in: lkml
Subsystem: the rest · Maintainer: Linus Torvalds

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);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help