[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [LINUX] Properly trigger XenbusStateClosed in blkfront
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Node ID 30fe5097cf7f3e61d8069a9d2d1b20476aa9b764 # Parent f19ddc0ee3e68d5d8a250ba0a20ab7d90ae9a36a [LINUX] Properly trigger XenbusStateClosed in blkfront In some situations, like when error happens in block attach for a guest in dom0, backend send us XenbusStateClosing notification. However, as frontend were never properly initialized, it fails to change its own state to XenbusStateClosed, leaving the system in a dead-end state. Signed-off-by: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx> --- linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r f19ddc0ee3e6 -r 30fe5097cf7f linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Thu Nov 30 17:33:11 2006 +0000 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Thu Nov 30 17:34:48 2006 +0000 @@ -359,7 +359,7 @@ static void blkfront_closing(struct xenb DPRINTK("blkfront_closing: %s removed\n", dev->nodename); if (info->rq == NULL) - return; + goto out; spin_lock_irqsave(&blkif_io_lock, flags); /* No more blkif_request(). */ @@ -373,6 +373,7 @@ static void blkfront_closing(struct xenb xlvbd_del(info); + out: xenbus_frontend_closed(dev); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |