svn commit: r248994 - projects/amd64_xen_pv/sys/xen/xenbus
Cherry G. Mathew
cherry at FreeBSD.org
Tue Apr 2 04:12:17 UTC 2013
Author: cherry
Date: Tue Apr 2 04:12:17 2013
New Revision: 248994
URL: http://svnweb.freebsd.org/changeset/base/248994
Log:
Revert r248952
This was a configuration error rather than a programming bug.
Reviewed and Pointed out by: gibbs@
Modified:
projects/amd64_xen_pv/sys/xen/xenbus/xenbusb.c
Modified: projects/amd64_xen_pv/sys/xen/xenbus/xenbusb.c
==============================================================================
--- projects/amd64_xen_pv/sys/xen/xenbus/xenbusb.c Tue Apr 2 00:57:54 2013 (r248993)
+++ projects/amd64_xen_pv/sys/xen/xenbus/xenbusb.c Tue Apr 2 04:12:17 2013 (r248994)
@@ -594,7 +594,8 @@ xenbusb_release_confighook(struct xenbus
KASSERT(xbs->xbs_connecting_children > 0,
("Connecting device count error\n"));
xbs->xbs_connecting_children--;
- if ((xbs->xbs_flags & XBS_ATTACH_CH_ACTIVE) != 0) {
+ if (xbs->xbs_connecting_children == 0
+ && (xbs->xbs_flags & XBS_ATTACH_CH_ACTIVE) != 0) {
xbs->xbs_flags &= ~XBS_ATTACH_CH_ACTIVE;
mtx_unlock(&xbs->xbs_lock);
config_intrhook_disestablish(&xbs->xbs_attach_ch);
More information about the svn-src-projects
mailing list