|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH] V2
Signed-off-by: Daniel Davis <Daniel.Davis@xxxxxxxxxx>
---
src/xenvbd/ring.c | 35 +++++++++++++++++------------------
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/src/xenvbd/ring.c b/src/xenvbd/ring.c
index 431e1b5..b497690 100644
--- a/src/xenvbd/ring.c
+++ b/src/xenvbd/ring.c
@@ -95,7 +95,7 @@ typedef struct _XENVBD_BLKIF_RING {
ULONG RequestsPushed;
ULONG ResponsesProcessed;
PXENBUS_DEBUG_CALLBACK DebugCallback;
- LARGE_INTEGER TimeOfLastErrorLog;
+ LARGE_INTEGER TimeOfLastErrorLog;
} XENVBD_BLKIF_RING, *PXENVBD_BLKIF_RING;
typedef enum _XENVBD_STAT {
@@ -1214,23 +1214,22 @@ __BlkifRingCompleteResponse(
break;
case BLKIF_RSP_ERROR:
- default:
- {
- LARGE_INTEGER timeNow;
-
- KeQuerySystemTime(&timeNow);
-
- //if last log message was less than 10 seconds ago
- if (timeNow.QuadPart - BlkifRing->TimeOfLastErrorLog.QuadPart <
100000000) {
- Warning("Target[%u][%u] : %s BLKIF_RSP_ERROR\n",
- FrontendGetTargetId(Frontend),
- BlkifRing->Index,
- __BlkifOperationName(Request->Operation));
- KeQuerySystemTime(&BlkifRing->TimeOfLastErrorLog);
- }
- Srb->SrbStatus = SRB_STATUS_ERROR;
- break;
- }
+ default:{
+ LARGE_INTEGER TimeNow;
+
+ KeQuerySystemTime(&TimeNow);
+
+ //if last log message was less than 10 seconds ago
+ if (TimeNow.QuadPart - BlkifRing->TimeOfLastErrorLog.QuadPart <
100000000ull) {
+ Warning("Target[%u][%u] : %s BLKIF_RSP_ERROR\n",
+ FrontendGetTargetId(Frontend),
+ BlkifRing->Index,
+ __BlkifOperationName(Request->Operation));
+ KeQuerySystemTime(&BlkifRing->TimeOfLastErrorLog);
+ }
+ Srb->SrbStatus = SRB_STATUS_ERROR;
+ break;
+ }
}
BlkifRingPutRequest(BlkifRing, Request);
--
2.22.0.windows.1
_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |