]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Remove S4 BUG_ONs for interface that don't depend on Xen
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Nov 2016 11:00:11 +0000 (11:00 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Nov 2016 11:00:11 +0000 (11:00 +0000)
Some interfaces don't depend on Xen (e.g. CACHE, RANGE_SET) and so it
is safe for them to have outstanding references across an S4 transtion
or suspend/resume (i.e. transitions which result in a new domain). Only
interfaces that actually depend on Xen (e.g. GNTTAB, EVTCHN) cannot
have outstanding reference in these cases, so limit the BUG_ONs to those.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/fdo.c

index 34aee1492907e85177d6cf3c13209b7ce0e2642b..2e1ef6b95cb8be31b721057c36b7d16cfd72f77b 100644 (file)
@@ -3219,12 +3219,8 @@ FdoS3ToS4(
     BUG_ON(SuspendGetReferences(Fdo->SuspendContext) != 0);
     BUG_ON(SharedInfoGetReferences(Fdo->SharedInfoContext) != 0);
     BUG_ON(EvtchnGetReferences(Fdo->EvtchnContext) != 0);
-    BUG_ON(DebugGetReferences(Fdo->DebugContext) != 0);
     BUG_ON(StoreGetReferences(Fdo->StoreContext) != 0);
-    BUG_ON(RangeSetGetReferences(Fdo->RangeSetContext) != 0);
-    BUG_ON(CacheGetReferences(Fdo->CacheContext) != 0);
     BUG_ON(GnttabGetReferences(Fdo->GnttabContext) != 0);
-    BUG_ON(UnplugGetReferences(Fdo->UnplugContext) != 0);
     BUG_ON(BalloonGetReferences(Fdo->BalloonContext) != 0);
 
 not_active: