lkml.org 
[lkml]   [2009]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 4/4] cgroup-memcg fix frequent EBUSY at rmdir
On Tue, 13 Jan 2009 19:05:35 -0800
Paul Menage <menage@google.com> wrote:

> On Tue, Jan 13, 2009 at 7:00 PM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
> >
> > Hmm, add wait_queue to css and wake it up at css_put() ?
> >
> > like this ?
> > ==
> > __css_put()
> > {
> > if (atomi_dec_return(&css->refcnt) == 1) {
> > if (notify_on_release(cgrp) {
> > .....
> > }
> > if (someone_waiting_rmdir(css)) {
> > wake_up_him().
> > }
> > }
> > }
>
> Yes, something like that. A system-wide wake queue is probably fine though.
>
Ok, I'll try that.

-Kame



\
 
 \ /
  Last update: 2009-01-14 04:15    [from the cache]
©2003-2011 Jasper Spaans