win-pvdrivers

changeset 829:d931c38fc0f2

Fix race/crash when an interrupt is received too early
author James Harper <james.harper@bendigoit.com.au>
date Thu Jan 13 11:07:47 2011 +1100 (2011-01-13)
parents 42f72a7b5f1f
children 28b96b05fa36
files xenvbd/xenvbd.c
line diff
     1.1 --- a/xenvbd/xenvbd.c	Thu Jan 13 10:59:57 2011 +1100
     1.2 +++ b/xenvbd/xenvbd.c	Thu Jan 13 11:07:47 2011 +1100
     1.3 @@ -1067,7 +1067,8 @@ KdPrint((__DRIVER_NAME "     Completed r
     1.4      }
     1.5    }
     1.6  
     1.7 -  XenVbd_PutQueuedSrbsOnRing(xvdd);
     1.8 +  if (start_ring_detect_state == RING_DETECT_STATE_COMPLETE)
     1.9 +    XenVbd_PutQueuedSrbsOnRing(xvdd);
    1.10  
    1.11    if (suspend_resume_state_pdo == SR_STATE_SUSPENDING)
    1.12    {