From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andrew Jones <drjones@redhat.com>
Cc: Konrad Rzeszutek Wilk <konrad@darnok.org>,
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 10:20:04 -0500 [thread overview]
Message-ID: <20120217152004.GB30298@phenom.dumpdata.com> (raw)
In-Reply-To: <df073550-b049-4522-ac03-8f4ffcea426c@zmail17.collab.prod.int.phx2.redhat.com>
On Fri, Feb 17, 2012 at 07:50:11AM -0500, Andrew Jones wrote:
>
>
> ----- Original Message -----
> > On Thu, Feb 16, 2012 at 01:17:09PM +0100, Andrew Jones wrote:
> > > We just reported to xenbus that we can't close yet, because
> > > blkfront is still in use. So we shouldn't then immediately
> > > state that we are closing.
> >
> > What happens if the user uses --force to unplug the device?
> > Will that still work?
>
> With RHEL5 tooling I get the same results. That is, the device
> is forcibly detached, and then any task in the guest that still
> attempts to use (or even just unmount) the device hangs.
>
> I don't know anything about xl, but afaict block-detach
> doesn't take a 'force' option?
konrad@phenom:~/ssd/linux$ xm block-detach
xend [ERROR] Config file does not exist: /etc/xen/xend-config.sxp
Error: 'xm block-detach' requires between 2 and 3 arguments.
Usage: xm block-detach <Domain> <DevId> [-f|--force]
Destroy a domain's virtual block device.
>
> Drew
>
> > >
> > > Signed-off-by: Andrew Jones <drjones@redhat.com>
> > > ---
> > > drivers/block/xen-blkfront.c | 1 -
> > > 1 files changed, 0 insertions(+), 1 deletions(-)
> > >
> > > diff --git a/drivers/block/xen-blkfront.c
> > > b/drivers/block/xen-blkfront.c
> > > index 5d45688..b53cae4 100644
> > > --- a/drivers/block/xen-blkfront.c
> > > +++ b/drivers/block/xen-blkfront.c
> > > @@ -1134,7 +1134,6 @@ blkfront_closing(struct blkfront_info *info)
> > > if (bdev->bd_openers) {
> > > xenbus_dev_error(xbdev, -EBUSY,
> > > "Device in use; refusing to close");
> > > - xenbus_switch_state(xbdev, XenbusStateClosing);
> > > } else {
> > > xlvbd_release_gendisk(info);
> > > xenbus_frontend_closed(xbdev);
> > > --
> > > 1.7.7.5
> > >
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> >
next prev parent reply other threads:[~2012-02-17 15:20 UTC|newest]
Thread overview: 16+ 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 ` [Xen-devel] [PATCH] " Konrad Rzeszutek Wilk
2012-02-20 10:35 ` Andrew Jones
2012-02-21 9:14 ` Jan Beulich
2012-02-21 9:23 ` Andrew Jones
2012-02-21 9:38 ` Jan Beulich
[not found] ` <4F43743102000078000740C2@nat28.tlf.novell.com>
2012-02-21 14:36 ` Konrad Rzeszutek Wilk
[not found] ` <20120221143634.GD5652@phenom.dumpdata.com>
2012-03-09 13:32 ` Jan Beulich
2012-02-16 19:48 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-02-17 12:50 ` Andrew Jones
2012-02-17 15:20 ` Konrad Rzeszutek Wilk [this message]
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=20120217152004.GB30298@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=drjones@redhat.com \
--cc=jeremy@goop.org \
--cc=konrad@darnok.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).