Skip to contentSkip to conversation

xen/blkfront: Make sure that the device is fully ready before allowing release.

PATCH In review Jeremy Fitzhardinge 1 participant 1 message Jun 16, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 xen/blkfront: Make sure that the device is fully ready before allowing release.

From: Wim Colgate <[email protected]>

[ linux-2.6.18-xen changeset c1c57fea77e9 ]

---
drivers/block/xen-blkfront.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

===================================================================

drivers/block/xen-blkfront.c +0 -0
@@ -997,7 +997,7 @@
		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;