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

[win-pv-devel] [PATCH 5/5] Ignore failures when closing the frontend



The backend may disappear when this happens but we must always carry on
and disconnect the frontend regardless.

From: Owen Smith <owen.smith@xxxxxxxxxx>
Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenvbd/frontend.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/xenvbd/frontend.c b/src/xenvbd/frontend.c
index f01b142..94e7f5b 100644
--- a/src/xenvbd/frontend.c
+++ b/src/xenvbd/frontend.c
@@ -1369,12 +1369,7 @@ __FrontendSetState(
             case XENVBD_CLOSED:
             case XENVBD_PREPARED:
                 Status = FrontendClose(Frontend);
-                if (NT_SUCCESS(Status)) {
-                    Frontend->State = XENVBD_CLOSING;
-                } else {
-                    Frontend->State = XENVBD_STATE_INVALID;
-                    Failed = TRUE;
-                }
+                Frontend->State = XENVBD_CLOSING;
                 break;
             default:
                 Failed = TRUE;
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

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