All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andrew Jones <drjones@redhat.com>
Cc: jeremy@goop.org, xen-devel@lists.xensource.com,
	virtualization@lists.linux-foundation.org
Subject: Re: [Xen-devel] [PATCH] blkfront: don't change to closing if we're busy
Date: Fri, 17 Feb 2012 13:58:36 -0500	[thread overview]
Message-ID: <20120217185836.GA23942@phenom.dumpdata.com> (raw)
In-Reply-To: <20120217165253.GA17397@turtle.usersys.redhat.com>

On Fri, Feb 17, 2012 at 05:52:54PM +0100, Andrew Jones wrote:
> On Thu, Feb 16, 2012 at 12:33:32PM -0500, Andrew Jones wrote:
> > Hmm, I should maybe self-nack this. The bug that led me to writing
> > it is likely only with older tooling, such as RHEL5's. The problem
> > was if you attempted to detach a mounted disk twice, then the second
> > time it would succeed. The guest had flipped to Closing on the first
> > try, and thus didn't issue an error to xenbus on the second. I see
> 
> Actually, it's even worse than I thought. Just a single attempt to
> detach the device will cause the guest grief (with RHEL5's tools
> anyway). Once xenbus shows the device is in the Closing state, then
> tasks accessing the device may hang.
> 
> > The reason I only say maybe self-nack though, is because this state
> > change seemed to be thrown in with another fix[1]. I'm not sure if
> > the new behavior on legacy hosts was considered or not. If not, then
> > we can consider it now. Do we want to have deferred asynch detaches
> > over protecting the guest from multiple detach calls on legacy hosts?
> > 
> 
> I guess we can keep the feature and protect the guest with a patch like
> I'll send in a moment. It doesn't really work for me with a RHEL5 host
> though. The deferred close works from the pov of the guest, but the
> state of the block device gets left in Closed after the guest unmounts
> it, and then RHEL5's tools can't detach/reattach it. If the deferred
> close ever worked on other Xen hosts though, then I don't believe this
> patch would break it, and it will also keep the guest safe when run on
> hosts that don't treat state=Closing the way it currently expects.

There was another fix that sounds similar to this in the backend.
6f5986bce558e64fe867bff600a2127a3cb0c006

  parent reply	other threads:[~2012-02-17 18:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16 12:17 [PATCH] blkfront: don't change to closing if we're busy Andrew Jones
2012-02-16 17:33 ` [Xen-devel] " Andrew Jones
2012-02-17 16:52   ` Andrew Jones
2012-02-17 16:59     ` [PATCH v2] " Andrew Jones
2012-02-20 18:26       ` [Xen-devel] " Andrew Jones
2012-02-17 18:58     ` Konrad Rzeszutek Wilk [this message]
2012-02-20 10:35       ` [Xen-devel] [PATCH] " Andrew Jones
2012-02-21  9:14         ` Jan Beulich
2012-02-21  9:23           ` Andrew Jones
2012-02-21  9:38             ` Jan Beulich
2012-02-21  9:38             ` [Xen-devel] " Jan Beulich
2012-02-21 14:36               ` Konrad Rzeszutek Wilk
2012-02-21 14:36               ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-03-09 13:32                 ` Jan Beulich
2012-03-09 13:32                 ` [Xen-devel] " Jan Beulich
2012-02-16 19:48 ` Konrad Rzeszutek Wilk
2012-02-17 12:50   ` Andrew Jones
2012-02-17 15:20     ` Konrad Rzeszutek Wilk
2012-02-17 16:31       ` Andrew Jones

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=20120217185836.GA23942@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=drjones@redhat.com \
    --cc=jeremy@goop.org \
    --cc=virtualization@lists.linux-foundation.org \
    --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.