linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: containers@lists.osdl.org
Cc: bugzilla-daemon@bugzilla.kernel.org,
	bugme-daemon@bugzilla.kernel.org, linux-mm@kvack.org,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Paul Menage <menage@google.com>,
	Daniel Poelzleithner <poelzi@poelzi.org>
Subject: Re: [Bugme-new] [Bug 30432] New: rmdir on cgroup can cause hang tasks
Date: Fri, 4 Mar 2011 00:03:55 -0800	[thread overview]
Message-ID: <20110304000355.4f68bab1.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-30432-10286@https.bugzilla.kernel.org/>


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Fri, 4 Mar 2011 04:27:26 GMT bugzilla-daemon@bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=30432
> 
>            Summary: rmdir on cgroup can cause hang tasks
>            Product: Process Management
>            Version: 2.5
>     Kernel Version: 2.6.37
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: high
>           Priority: P1
>          Component: Other
>         AssignedTo: process_other@kernel-bugs.osdl.org
>         ReportedBy: bugzilla.kernel.org@poelzi.org
>         Regression: No
> 
> 
> I just got following hang when removing an empty cgroup. I had still a shell in
> the cgroup that got emptied and removed. The shell as well as the release_agent
> and the program managing the cgroup hangs.
> 
> The directory structure looks like:
> /sys/fs/cgroup/memory/usr_1000/psn_3234
> 
> ls on /sys/fs/cgroup/memory but ls on /sys/fs/cgroup/memory/usr_1000 hangs.
> 
> 
> [ 5065.280666] SysRq : Changing Loglevel
> [ 5065.282574] Loglevel set to 5
> [ 5066.139879] SysRq : Show Blocked State
> [ 5066.141848]   task                        PC stack   pid father
> [ 5066.141925] zsh           D ffff880071520398     0  8719   3589 0x00000084
> [ 5066.141937]  ffff880002059bd8 0000000000000086 ffff880002059bb8
> ffffffff00000000
> [ 5066.143971]  00000000000139c0 ffff880071520000 ffff880071520398
> ffff880002059fd8
> [ 5066.146049]  ffff8800715203a0 00000000000139c0 ffff880002058010
> 00000000000139c0
> [ 5066.148183] Call Trace:
> [ 5066.149853]  [<ffffffff8158ec97>] __mutex_lock_slowpath+0xf7/0x180
> [ 5066.149853]  [<ffffffff812d74a6>] ? vsnprintf+0x416/0x5a0
> [ 5066.149853]  [<ffffffff8158eb7b>] mutex_lock+0x2b/0x50
> [ 5066.149853]  [<ffffffff81168252>] do_lookup+0x102/0x180
> [ 5066.149853]  [<ffffffff81168dfd>] link_path_walk+0x4dd/0x9e0
> [ 5066.149853]  [<ffffffff81169417>] path_walk+0x67/0xe0
> [ 5066.149853]  [<ffffffff811695eb>] do_path_lookup+0x5b/0xa0
> [ 5066.149853]  [<ffffffff8116a2f7>] user_path_at+0x57/0xa0
> [ 5066.149853]  [<ffffffff815940e0>] ? do_page_fault+0x1f0/0x4f0
> [ 5066.149853]  [<ffffffff81075e6c>] ? kill_pid_info+0x2c/0x60
> [ 5066.149853]  [<ffffffff811604fc>] vfs_fstatat+0x3c/0x80
> [ 5066.149853]  [<ffffffff8116061b>] vfs_stat+0x1b/0x20
> [ 5066.149853]  [<ffffffff81160644>] sys_newstat+0x24/0x50
> [ 5066.149853]  [<ffffffff810bf6ff>] ? audit_syscall_entry+0x1df/0x280
> [ 5066.149853]  [<ffffffff8100c042>] system_call_fastpath+0x16/0x1b
> [ 5066.149853] ulatencyd     D ffff88007a0bc7d8     0  9004   4809 0x00000084
> [ 5066.149853]  ffff880070b55cd8 0000000000000082 0000000000000082
> ffff88002c9d16c0
> [ 5066.149853]  00000000000139c0 ffff88007a0bc440 ffff88007a0bc7d8
> ffff880070b55fd8
> [ 5066.149853]  ffff88007a0bc7e0 00000000000139c0 ffff880070b54010
> 00000000000139c0
> [ 5066.149853] Call Trace:
> [ 5066.149853]  [<ffffffff8158ec97>] __mutex_lock_slowpath+0xf7/0x180
> [ 5066.149853]  [<ffffffff81166124>] ? exec_permission+0x44/0x90
> [ 5066.149853]  [<ffffffff8158eb7b>] mutex_lock+0x2b/0x50
> [ 5066.149853]  [<ffffffff81168418>] do_last+0x148/0x650
> [ 5066.149853]  [<ffffffff8116a6d5>] do_filp_open+0x205/0x5f0
> [ 5066.149853]  [<ffffffff81167281>] ? path_put+0x31/0x40
> [ 5066.149853]  [<ffffffff8117593a>] ? alloc_fd+0x10a/0x150
> [ 5066.149853]  [<ffffffff81159bb9>] do_sys_open+0x69/0x110
> [ 5066.149853]  [<ffffffff81159ca0>] sys_open+0x20/0x30
> [ 5066.149853]  [<ffffffff8100c042>] system_call_fastpath+0x16/0x1b
> [ 5066.149853] lua           D ffff88002c91b118     0  9487      1 0x00000080
> [ 5066.149853]  ffff880078f6db08 0000000000000086 ffff88002c91b118
> ffff880000000000
> [ 5066.149853]  00000000000139c0 ffff88002c91ad80 ffff88002c91b118
> ffff880078f6dfd8
> [ 5066.149853]  ffff88002c91b120 00000000000139c0 ffff880078f6c010
> 00000000000139c0
> [ 5066.149853] Call Trace:
> [ 5066.149853]  [<ffffffff8158e4d5>] schedule_timeout+0x215/0x2f0
> [ 5066.149853]  [<ffffffff8104e4fd>] ? task_rq_lock+0x5d/0xa0
> [ 5066.149853]  [<ffffffff81059c93>] ? try_to_wake_up+0xc3/0x410
> [ 5066.149853]  [<ffffffff8158e0cb>] wait_for_common+0xdb/0x180
> [ 5066.149853]  [<ffffffff81059fe0>] ? default_wake_function+0x0/0x20
> [ 5066.244366]  [<ffffffff8158e24d>] wait_for_completion+0x1d/0x20
> [ 5066.244366]  [<ffffffff810d44f5>] synchronize_sched+0x55/0x60
> [ 5066.244366]  [<ffffffff81080b00>] ? wakeme_after_rcu+0x0/0x20
> [ 5066.244366]  [<ffffffff811526a3>] mem_cgroup_start_move+0x93/0xa0
> [ 5066.244366]  [<ffffffff8115739b>] mem_cgroup_force_empty+0xdb/0x640
> [ 5066.244366]  [<ffffffff81157914>] mem_cgroup_pre_destroy+0x14/0x20
> [ 5066.244366]  [<ffffffff810ae681>] cgroup_rmdir+0xc1/0x560
> [ 5066.244366]  [<ffffffff81083d70>] ? autoremove_wake_function+0x0/0x40
> [ 5066.244366]  [<ffffffff81167cc4>] vfs_rmdir+0xb4/0x110
> [ 5066.244366]  [<ffffffff81169d13>] do_rmdir+0x133/0x140
> [ 5066.244366]  [<ffffffff810d3c85>] ? call_rcu_sched+0x15/0x20
> [ 5066.244366]  [<ffffffff810bf6ff>] ? audit_syscall_entry+0x1df/0x280
> [ 5066.244366]  [<ffffffff81169d76>] sys_rmdir+0x16/0x20
> [ 5066.244366]  [<ffffffff8100c042>] system_call_fastpath+0x16/0x1b

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

       reply	other threads:[~2011-03-04  8:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-30432-10286@https.bugzilla.kernel.org/>
2011-03-04  8:03 ` Andrew Morton [this message]
2011-03-04  8:28   ` KAMEZAWA Hiroyuki
2011-03-04  9:01     ` KAMEZAWA Hiroyuki
2011-03-07  4:58       ` KAMEZAWA Hiroyuki
2011-03-07  5:39         ` KAMEZAWA Hiroyuki
2011-03-04  9:02   ` Daisuke Nishimura

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110304000355.4f68bab1.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=bugme-daemon@bugzilla.kernel.org \
    --cc=bugzilla-daemon@bugzilla.kernel.org \
    --cc=containers@lists.osdl.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=menage@google.com \
    --cc=poelzi@poelzi.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox