Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen Check status before proceeding further. Avo...
details: https://anonhg.NetBSD.org/src/rev/e826b239ca5d
branches: trunk
changeset: 764483:e826b239ca5d
user: jym <jym%NetBSD.org@localhost>
date: Mon Apr 25 17:01:54 2011 +0000
description:
Check status before proceeding further. Avoids spurious watch calls.
diffstat:
sys/arch/xen/xen/if_xennet_xenbus.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r a3257711e43e -r e826b239ca5d sys/arch/xen/xen/if_xennet_xenbus.c
--- a/sys/arch/xen/xen/if_xennet_xenbus.c Mon Apr 25 14:14:22 2011 +0000
+++ b/sys/arch/xen/xen/if_xennet_xenbus.c Mon Apr 25 17:01:54 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_xennet_xenbus.c,v 1.49 2011/04/25 00:00:50 jym Exp $ */
+/* $NetBSD: if_xennet_xenbus.c,v 1.50 2011/04/25 17:01:54 jym Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -85,7 +85,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.49 2011/04/25 00:00:50 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.50 2011/04/25 17:01:54 jym Exp $");
#include "opt_xen.h"
#include "opt_nfs_boot.h"
@@ -570,6 +570,8 @@
xenbus_switch_state(sc->sc_xbusd, NULL, XenbusStateClosed);
break;
case XenbusStateInitWait:
+ if (sc->sc_backend_status == BEST_CONNECTED)
+ break;
if (xennet_talk_to_backend(sc) == 0)
xenbus_switch_state(sc->sc_xbusd, NULL,
XenbusStateConnected);
Home |
Main Index |
Thread Index |
Old Index