win-pvdrivers

changeset 602:093ba74b1e6e

Make sure that we can still GC the last packets on shutdown
author James Harper <james.harper@bendigoit.com.au>
date Sun Jul 05 11:05:23 2009 +1000 (2009-07-05)
parents 2d022b487c64
children ee9c59a5a06c
files xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_tx.c	Fri Jul 03 11:24:43 2009 +1000
     1.2 +++ b/xennet/xennet_tx.c	Sun Jul 05 11:05:23 2009 +1000
     1.3 @@ -424,7 +424,7 @@ XenNet_TxBufferGC(PKDPC dpc, PVOID conte
     1.4  
     1.5    KeAcquireSpinLockAtDpcLevel(&xi->tx_lock);
     1.6  
     1.7 -  if (xi->shutting_down)
     1.8 +  if (xi->shutting_down && !xi->tx_outstanding)
     1.9    {
    1.10      /* there is a chance that our Dpc had been queued just before the shutdown... */
    1.11      KeReleaseSpinLockFromDpcLevel(&xi->tx_lock);