linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Paul Menage <menage@google.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.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: Wed, 10 Dec 2008 14:48:37 -0800	[thread overview]
Message-ID: <6599ad830812101448h46e1ea1cs80635611f9205962@mail.gmail.com> (raw)
In-Reply-To: <20081210133508.3ee454ae.kamezawa.hiroyu@jp.fujitsu.com>

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.

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).

Paul

--
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>

  parent reply	other threads:[~2008-12-10 22:48 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 ` Paul Menage [this message]
2008-12-11  0:26   ` [PATCH mmotm 1/2] cgroup: fix to stop adding a new task while rmdir going on KAMEZAWA Hiroyuki

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=6599ad830812101448h46e1ea1cs80635611f9205962@mail.gmail.com \
    --to=menage@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=lizf@cn.fujitsu.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