linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Paul Menage <menage@google.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
	"lizf@cn.fujitsu.com" <lizf@cn.fujitsu.com>,
	"nishimura@mxp.nes.nec.co.jp" <nishimura@mxp.nes.nec.co.jp>,
	"balbir@linux.vnet.ibm.com" <balbir@linux.vnet.ibm.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>
Subject: Re: [PATCH mmotm 1/2] cgroup: fix to stop adding a new task while rmdir going on
Date: Thu, 11 Dec 2008 09:26:47 +0900	[thread overview]
Message-ID: <20081211092647.bb5ea05a.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <6599ad830812101448h46e1ea1cs80635611f9205962@mail.gmail.com>

On Wed, 10 Dec 2008 14:48:37 -0800
Paul Menage <menage@google.com> wrote:

> On Tue, Dec 9, 2008 at 8:35 PM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> > still need reviews.
> > ==
> > Recently, pre_destroy() was moved to out of cgroup_lock() for avoiding
> > dead lock. But, by this, serialization between task attach and rmdir()
> > is lost.
> >
> > This adds CGRP_TRY_REMOVE flag to cgroup and check it at attaching.
> > If attach_pid founds CGRP_TRY_REMOVE, it returns -EBUSY.
> 
> As I've mentioned in other threads, I think the fix is to restore the
> locking for pre_destroy(), and solve the other potential deadlocks in
> better ways.
> 
Sure.

> This patch can result in an attach falsely getting an EBUSY when it
> shouldn't really do so (since the cgroup wasn't really going away).
> 
yes, it's also my concern. I'll think again.

-Kame

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2008-12-11  0:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10  4:35 KAMEZAWA Hiroyuki
2008-12-10  4:45 ` [PATCH mmotm 2/2] cgroup: add CSS_POPULATED flag to show css is in use KAMEZAWA Hiroyuki
2008-12-10 22:48 ` [PATCH mmotm 1/2] cgroup: fix to stop adding a new task while rmdir going on Paul Menage
2008-12-11  0:26   ` KAMEZAWA Hiroyuki [this message]

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=20081211092647.bb5ea05a.kamezawa.hiroyu@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=linux-mm@kvack.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=menage@google.com \
    --cc=nishimura@mxp.nes.nec.co.jp \
    /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