All of lore.kernel.org
 help / color / mirror / Atom feed
From: John McCullough <jmccullo@cs.ucsd.edu>
To: xen-devel@lists.xensource.com
Subject: Re: XenStore Watch Behavior
Date: Tue, 29 Aug 2006 16:35:09 -0700	[thread overview]
Message-ID: <44F4CF2D.6050408@cs.ucsd.edu> (raw)
In-Reply-To: <20060829194227.GF552@leeni.uk.xensource.com>

Ewan Mellor wrote:
> If you want to have data that outlive the domain (I presume in your case for
> just a short while) then you should put them somewhere other than
> /local/domain.  There is a /tool/<yournamehere> hierarchy reserved for
> third-party tools, if that suits you better.  You would then have to handle
> all the sweep-up yourself of course.
> 
> In your case, couldn't you just release the semaphore off the @releaseDomain
> watch?  Don't forget, domains can spontaneously self-destruct, maybe even
> half-way between your "shutdown" and "shutdown_done", so you need to be able
> to unconditionally abort and release locks.

I am getting the same behavior with xswatch when watching on /tool/blah
as with the /local/domain/%u/blah.  The watch I added to @releaseDomain
is also not getting triggered.

Removing the wait for the shutdown_done allows it to come to completion.
 I think it may be the case that the initial @releaseDomain then
triggers the destroyDomain in XendDomain.py via refresh() which then
triggers the  destroy() in image.py.  Then, by blocking, we prevent the
original xswatch from coming to completion and block our own watch from
ever getting triggered.

My initial thought is to return to using a separately created xshandle
for my blocking channel.

If this is the case, how do we want to develop the semantics?

-John

      reply	other threads:[~2006-08-29 23:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-26 20:32 XenStore Watch Behavior John McCullough
2006-08-27 14:57 ` Keir Fraser
2006-08-29  0:48   ` John McCullough
2006-08-29  0:52     ` John McCullough
2006-08-29  2:22     ` John McCullough
2006-08-29  6:27       ` Keir Fraser
2006-08-29  9:15       ` Ewan Mellor
2006-08-29 19:12         ` John McCullough
2006-08-29 19:42           ` Ewan Mellor
2006-08-29 23:35             ` John McCullough [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=44F4CF2D.6050408@cs.ucsd.edu \
    --to=jmccullo@cs.ucsd.edu \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.