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

[win-pv-devel] [PATCH] Track StartIo count


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Fri, 16 Aug 2019 10:48:46 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=owen.smith@xxxxxxxxxx; spf=Pass smtp.mailfrom=owen.smith@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Fri, 16 Aug 2019 09:49:23 +0000
  • Ironport-sdr: uFRNxKbwqyrzI2fauhzU5qygrzMD0QmYPmuG1lMXybD3hOwBCmLjoE2JaWUtyl8pH2+EnsAmw3 GfTqG5I7tXGam/gws9NKIjy4OqIKuNaiXtESWYRChWqrKqAGdVVnMPjf8qWmnrCmPToprhsuOL jM8cloYhtGHBC1mV5jWGKympo0PM7PsDimYYX+r3YskOkOu20nr/Wam6o42TvWjyentkArfTeu CUtBbKWmCezVaqaT8SRMHZ3Ga3YGGT9HUOeFYwT2THQLEdARM933gZikbfv+al+R+8CxrXpLvd mwA=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Adapter->StartIo was not being incremented, meaning this stat had no value

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenvbd/adapter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xenvbd/adapter.c b/src/xenvbd/adapter.c
index 79a5a0e..aeeb490 100644
--- a/src/xenvbd/adapter.c
+++ b/src/xenvbd/adapter.c
@@ -1976,6 +1976,7 @@ AdapterHwStartIo(
     BOOLEAN                 WasQueued = FALSE;
     PXENVBD_TARGET          Target;
 
+    InterlockedIncrement((PLONG)&Adapter->StartIo);
     Target = AdapterGetTarget(Adapter, Srb->TargetId);
     if (Target == NULL) {
         Srb->SrbStatus = SRB_STATUS_NO_DEVICE;
-- 
2.16.2.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®.