[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] V2


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Daniel Davis <Daniel.Davis@xxxxxxxxxx>
  • Date: Mon, 15 Jul 2019 16:38:27 +0100
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Daniel.Davis@xxxxxxxxxx; spf=Pass smtp.mailfrom=daniel.davis@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Daniel Davis <Daniel.Davis@xxxxxxxxxx>
  • Delivery-date: Mon, 15 Jul 2019 15:39:05 +0000
  • Ironport-sdr: XUFnapPxxEzhXPBXuSOn38ZPWsEZqoVqjIDGuv++pkB3yn+mHIizenLDqqvFshup3VHNEJlvez +7BsonHG0Uu7g0a8m0CrddVWL9JtKnqeRrIpwgkz/kFcckA15K5qB8a2yJ12WdgbUWgTqeEPIK O0c+tw3QnGKTXIy0EAY5Wko8rd+aRe99YeoIEQ6VTary57Us0U6azRL1/qfwt6evMU7dkL+FH0 0EZmneutTMjnLyyrTp73cwOeZ09IP674FPoT66nWlr2p4m33U5/BByCkh2Lx97GAs4+hfw80OD Y60=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.