virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] blkfront: don't change to closing if we're busy
@ 2012-02-16 12:17 Andrew Jones
  2012-02-16 17:33 ` [Xen-devel] " Andrew Jones
  2012-02-16 19:48 ` Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 16+ messages in thread
From: Andrew Jones @ 2012-02-16 12:17 UTC (permalink / raw)
  To: xen-devel; +Cc: jeremy, virtualization, konrad.wilk

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.

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

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-03-09 13:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-02-21 14:36               ` Konrad Rzeszutek Wilk
2012-03-09 13:32                 ` 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

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).