mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Balbir Singh" <balbir@linux.vnet.ibm.com>
To: "Paul Menage" <menage@google.com>
Cc: dhaval@linux.vnet.ibm.com, "Pavel Emelianov" <xemul@sw.ru>,
	"linux kernel mailing list" <linux-kernel@vger.kernel.org>,
	"Paul Jackson" <pj@sgi.com>,
	"Linux Containers" <containers@lists.osdl.org>,
	"Andrew Morton" <akpm@linux-foundation.org>
Subject: Re: Containers: css_put() dilemma
Date: Thu, 19 Jul 2007 09:14:28 +0530	[thread overview]
Message-ID: <661de9470707182044h16623776ma70bf3a078cead8d@mail.gmail.com> (raw)
In-Reply-To: <6599ad830707181615w4f2e4078j58473090691e36eb@mail.gmail.com>

On 7/19/07, Paul Menage <menage@google.com> wrote:
> On 7/17/07, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
> >
> > Thinking out loud again, can we add can_destroy() callbacks?
> >
>
> What would the exact semantics of such a callback be?
>
> Since for proper interaction with release agents we need the subsystem
> to notify the framework when a subsystem object becomes releasable
> (currently as part of css_put()), what would a can_destroy() callback
> let you do that you couldn't do just by taking an extra css refcount
> to prevent destruction and releasing that refcount to allow
> destruction?

I was thinking along those lines before you mentioned that the next
version of css_put() will not block. The advantage I see of
can_destory() is that it allows subsystems to do their own reference
counting and decide whether they are ready to be deleted or not. The
other advantage I see is that it can act like a prepare to be deleted
phase for the controller, the controller might decide to take some
action in the can_destroy() phase, like the memory controller could
decide to start reclaiming all  the remaining page cache pages.

BTW, do you know upfront as to when the next set of container
enhancement patches will be ready? The css_put() issue is blocking us
currently.

Balbir

  reply	other threads:[~2007-07-19  3:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 18:50 Balbir Singh
2007-07-16 19:03 ` Paul (宝瑠) Menage
2007-07-17  2:21   ` Balbir Singh
2007-07-17  2:35     ` Paul (宝瑠) Menage
2007-07-17  7:00       ` Balbir Singh
2007-07-17  7:18         ` Paul (宝瑠) Menage
2007-07-17 10:28           ` Balbir Singh
2007-07-17 15:49             ` Paul (宝瑠) Menage
2007-07-17 16:02               ` Dave Hansen
2007-07-17 16:15                 ` Paul (宝瑠) Menage
2007-07-17 17:23               ` Paul Jackson
2007-07-17 17:40               ` Balbir Singh
2007-07-17 17:44                 ` Paul (宝瑠) Menage
2007-07-17 17:55                   ` Paul Jackson
2007-07-17 17:57                     ` Paul (宝瑠) Menage
2007-07-17 18:11                   ` Balbir Singh
2007-07-17 18:26                     ` Paul (宝瑠) Menage
2007-07-18  4:29                       ` Balbir Singh
2007-07-18  5:30                         ` Balbir Singh
2007-07-18  5:52                           ` Srivatsa Vaddagiri
2007-07-18 23:15                           ` Paul Menage
2007-07-19  3:44                             ` Balbir Singh [this message]
2007-07-18  6:07                         ` Paul (宝瑠) Menage
2007-07-17 17:53                 ` Paul Jackson
2007-07-17 17:55                   ` Paul (宝瑠) Menage
2007-07-17 17:58                     ` Paul Jackson

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=661de9470707182044h16623776ma70bf3a078cead8d@mail.gmail.com \
    --to=balbir@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=containers@lists.osdl.org \
    --cc=dhaval@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menage@google.com \
    --cc=pj@sgi.com \
    --cc=xemul@sw.ru \
    /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

all inboxes | Powered by JetHome®