Bug 12673
Summary: | possible recursive locking detected in sget() | ||
---|---|---|---|
Product: | File System | Reporter: | Li Zefan (lizf) |
Component: | VFS | Assignee: | fs_vfs |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | akpm, menage |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.29-rc4 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Li Zefan
2009-02-09 00:10:51 UTC
It'd be better to handle this bug by the usual email means, IMO. Please cc Arjan, linux-kernel and the containers list? That's what I did, but no one responded to my reports. :( http://lkml.org/lkml/2009/1/4/354 http://lkml.org/lkml/2009/1/4/352 so I turned to the bugzilla to track these 2 issues. I think I can silence this lockdep warning with the following patch, but I don't think it's a real fix. (patch not tested) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 5a54ff4..52cf329 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -50,6 +50,7 @@ #include <asm/atomic.h> static DEFINE_MUTEX(cgroup_mutex); +static DEFINE_MUTEX(cgroup_mount_mutex); /* Generate an array of cgroup subsystem pointers */ #define SUBSYS(_x) &_x ## _subsys, @@ -989,7 +990,9 @@ static int cgroup_get_sb(struct file_system_type *fs_type, kfree(opts.release_agent); } + mutex_lock(&cgroup_mount_mutex); sb = sget(fs_type, cgroup_test_super, cgroup_set_super, root); + mutex_unlock(&cgroup_mount_mutex); if (IS_ERR(sb)) { kfree(root); patch available: http://lkml.org/lkml/2009/2/9/135 Andrew, could you pick it up? Fixed by ada723dcd681e2dffd7d73345cc8fda0eb0df9bd. Close it. |