]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
pvgrub: few lines in shutdown_blkfront were removed by mistake.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 09:05:27 +0000 (10:05 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 09:05:27 +0000 (10:05 +0100)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
blkfront.c

index 6fc2c96eac495f105110138661c0442a3a631205..1534747acb52fc14bd0c2a84263e537bc8ea0875 100644 (file)
@@ -244,6 +244,10 @@ void shutdown_blkfront(struct blkfront_dev *dev)
     xenbus_wait_for_value(path, "5", &dev->events);
 
     err = xenbus_printf(XBT_NIL, nodename, "state", "%u", 6);
+    xenbus_wait_for_value(path, "6", &dev->events);
+
+    err = xenbus_printf(XBT_NIL, nodename, "state", "%u", 1);
+    xenbus_wait_for_value(path, "2", &dev->events);
 
     xenbus_unwatch_path(XBT_NIL, path);