[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] Make sure that the device is fully ready before allowing release.



# HG changeset patch
# User Wim Colgate
# Date 1190678210 25200
# Node ID c1c57fea77e93a992e668f1c634fb8e8922ea52d
# Parent  2a8f7f0a8726a7d4f513a0bf044e65765c2be34c
Make sure that the device is fully ready before allowing release.

Signed-off-by: Wim Colgate <wim@xxxxxxxxxxxxx>
---
 drivers/xen/blkfront/blkfront.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2a8f7f0a8726 -r c1c57fea77e9 drivers/xen/blkfront/blkfront.c
--- a/drivers/xen/blkfront/blkfront.c   Thu Sep 20 14:17:12 2007 +0100
+++ b/drivers/xen/blkfront/blkfront.c   Mon Sep 24 16:56:50 2007 -0700
@@ -477,7 +477,7 @@ int blkif_release(struct inode *inode, s
                struct xenbus_device * dev = info->xbdev;
                enum xenbus_state state = 
xenbus_read_driver_state(dev->otherend);
 
-               if (state == XenbusStateClosing)
+               if (state == XenbusStateClosing && info->is_ready)
                        blkfront_closing(dev);
        }
        return 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.