From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754412Ab0IIKJR (ORCPT ); Thu, 9 Sep 2010 06:09:17 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:57065 "EHLO e34.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754344Ab0IIKJO (ORCPT ); Thu, 9 Sep 2010 06:09:14 -0400 Date: Thu, 9 Sep 2010 15:39:09 +0530 From: Balbir Singh To: Mark Hills Cc: KAMEZAWA Hiroyuki , Daisuke Nishimura , linux-kernel@vger.kernel.org Subject: Re: cgroup: rmdir() does not complete Message-ID: <20100909100909.GM4443@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: <20100827095639.6e7297de.nishimura@mxp.nes.nec.co.jp> <20100827113506.2bbbb7b9.kamezawa.hiroyu@jp.fujitsu.com> <20100827123948.b4427a15.nishimura@mxp.nes.nec.co.jp> <20100827144225.3190167a.kamezawa.hiroyu@jp.fujitsu.com> <20100902084200.e9b773cf.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mark Hills [2010-09-09 11:01:45]: > On Thu, 2 Sep 2010, KAMEZAWA Hiroyuki wrote: > > [...] > > But hmm...it's curious who holds mutex and what happens. > > I have a system showing the failure case (but still do not have a way to > reliably repeat it) > > Here are the two processes: > > 23586 pts/0 RL+ 5059:18 /net/homes/mhills/tmp/soaked-cgroup > 23685 pts/6 DL+ 0:00 /net/homes/mhills/tmp/soaked-cgroup > > 23586 spends almost all of its time in 'RL+' status, occasionally it is > seen in 'DL+' status. > > From my analysis before, both are blocked on rmdir(), but one is spinning, > holding the lock on the /cgroup, and the other is waiting for the lock. If > I strace 23586 then the rmdir() fails with EINTR. > Any chance you can compile with debug cgroup subsystem and get information from there? -- Three Cheers, Balbir