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

[win-pv-devel] [PATCH 2/2] rate limited log messages for storage errors


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Daniel Davis <Daniel.Davis@xxxxxxxxxx>
  • Date: Mon, 15 Jul 2019 14:12:56 +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 13:13:19 +0000
  • Ironport-sdr: yPGR+x3GIn12ceXmUdnHjsVmW4En7BYEWu9/mQeGUF3oH9b9N5iTTXEE+fiTNPGSvBUOcshpr1 jbm0tFWg+owYWdSnOQlCqQEr+ffeT4kPTTaFC7GPBymS0c3dvhwjCja5yhKozX/kJVAdb3cMlk qQtxrz6Z3Oza6f4t+Yuwf1XDitWLdz7f4q+ZKQsjC/kdwrknSYSzTBY/fqKVez8rf/2i8MRO9K xsu6bH5HeBQqKUAun8PXX1OhyLszVNER6QL9/50RFrOSga+85/Vvma3+1yuZjQpsSSxAuSbeEl YZk=
  • 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenvbd/ring.c b/src/xenvbd/ring.c
index 431e1b5..f7356d5 100644
--- a/src/xenvbd/ring.c
+++ b/src/xenvbd/ring.c
@@ -1221,7 +1221,7 @@ __BlkifRingCompleteResponse(
                KeQuerySystemTime(&timeNow);
 
                //if last log message was less than 10 seconds ago
-               if (timeNow.QuadPart - BlkifRing->TimeOfLastErrorLog.QuadPart < 
100000000) {
+               if (timeNow.QuadPart - BlkifRing->TimeOfLastErrorLog.QuadPart > 
(ULONGLONG) 100000000) {
                        Warning("Target[%u][%u] : %s BLKIF_RSP_ERROR\n",
                                FrontendGetTargetId(Frontend),
                                BlkifRing->Index,
-- 
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®.