All of lore.kernel.org
 help / color / mirror / Atom feed
From: "James (song wei)" <jsong@novell.com>
To: xen-devel@lists.xensource.com
Subject: Re: earlier remove the backend of tapdisk device	in xenstore to release the resource allocated in backend	driver lies in dom0'kernel
Date: Thu, 22 Apr 2010 18:48:56 -0700 (PDT)	[thread overview]
Message-ID: <28336546.post@talk.nabble.com> (raw)
In-Reply-To: <4BD083E1.10509@novell.com>




Jim Fehlig wrote:
> 
>>Agreed.  qemu-dm should clean up these resources on shutdown.  AFAICT,
>>it currently relies on receiving CTRMSG_CLOSE from blktapctrl (see
>>ioemu-dir/hw/xen_blktap.c), which it may never receive before exiting.
> 
> No, I don't think so. The root cause in this issue is qemu-dm exit too
> earlier.  
> Qemu-dm has been destroyed before blktapctrl send "CTRMSG_CLOSE",
> moreover, removing the backend node in xenstore trigers the callback in
> blktapctrl to send "CTRMSG_CLOSE".  
> It's xend to decide who ought to be occured earlier between sending SIGHUP
> to qemu-dm and removing the backend node in xenstore.  Obviously, xend is
> the role of manager. So I think fix this issue in xend is appropriate.
> In addition,  If we really want to fix it in qemu, we have to intercept
> the exit signal sent by kill() in xend. I don't think intercept this
> singal in qemu for this point is proper.
> 
> -Jame (Song Wei)
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 

-- 
View this message in context: http://old.nabble.com/earlier-remove-the-backend-of-tapdisk-device-in-xenstore-to-release-the-resource-allocated-in-backend-driver-lies-in-dom0%27kernel-tp28325456p28336546.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

  reply	other threads:[~2010-04-23  1:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22  8:08 earlier remove the backend of tapdisk device in xenstore to release the resource allocated in backend driver lies in dom0'kernel James (song wei)
2010-04-22 11:13 ` Jan Beulich
2010-04-22 17:14   ` Jim Fehlig
2010-04-23  1:48     ` James (song wei) [this message]
2010-04-23  3:24   ` James (song wei)
2010-04-23  8:13     ` Jan Beulich
2010-04-23  8:54       ` Keir Fraser
2010-04-23  9:09         ` James Song

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=28336546.post@talk.nabble.com \
    --to=jsong@novell.com \
    --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.