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

[win-pv-devel] [PATCH 3/4] Ignore missing requests for responses


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Mon, 16 Sep 2019 16:17:52 +0100
  • Authentication-results: esa2.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: Mon, 16 Sep 2019 15:21:52 +0000
  • Ironport-sdr: 8waFJkPXn+rmVVRPxAOCdfWScBHesNF1A2lvvs/3qj+rLbd88yBeoOISjuuucKkGlib8VgDkVn q4IOfFnJ9oTahaV0987TFcTkUmqCgrshnNu8HpZYqASMej12mxClFlRxCmsvlbIdjpMZ9bauD9 VfFoLcnr8NuaD1fMVAqGITLqSvJeAd/xcPsCS6sRNFmo6mn1jZWUhigSsKsryygQggQH/LR1V+ FiLxRL59J201TxVw8UDY4WUj8I/32xr9oUSOTd4qTurPhhYCbDEk1BZsCCqgTrrOP0HFXjFd/f NSA=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenvbd/ring.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/xenvbd/ring.c b/src/xenvbd/ring.c
index 3be7c14..d5db1da 100644
--- a/src/xenvbd/ring.c
+++ b/src/xenvbd/ring.c
@@ -1248,11 +1248,10 @@ BlkifRingPoll(
 
             Request = __BlkifRingGetSubmittedRequest(BlkifRing,
                                                      rsp->id);
-            ASSERT3P(Request, != , NULL);
-
-            __BlkifRingCompleteResponse(BlkifRing,
-                                        Request,
-                                        rsp->status);
+            if (Request != NULL)
+                __BlkifRingCompleteResponse(BlkifRing,
+                                            Request,
+                                            rsp->status);
 
             if (rsp_cons - BlkifRing->Front.rsp_cons > XENVBD_BATCH(BlkifRing))
                 Retry = TRUE;
-- 
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®.