In addition to preceding changes to ring disconnects, and
associated logging, we also add some logging to check
whether state change notifications are being sent in a timely
manner between frontend and backend. Also a great assistance
to customer debugging.
Signed-off-by: Martin Harvey <martin.harvey@citrix.com>
LARGE_INTEGER Timeout;
XenbusState Old = *State;
NTSTATUS status;
+ const ULONGLONG TotalTimeout = 120000;
Trace("%s: ====> %s\n",
__FrontendGetBackendPath(Frontend),
Timeout.QuadPart = 0;
- while (*State == Old && TimeDelta < 120000) {
+ while (*State == Old && TimeDelta < TotalTimeout) {
PCHAR Buffer;
LARGE_INTEGER Now;
TimeDelta = (Now.QuadPart - Start.QuadPart) / 10000ull;
}
+ if (TimeDelta >= TotalTimeout)
+ Error("%s timed out waiting for backend state change\n", __FrontendGetBackendPath(Frontend));
+
if (Watch != NULL)
(VOID) XENBUS_STORE(WatchRemove,
&Frontend->StoreInterface,