win-pvdrivers

changeset 636:3c5e4640df28

Minor change to inactive path on Restart
author James Harper <james.harper@bendigoit.com.au>
date Wed Aug 19 16:54:03 2009 +1000 (2009-08-19)
parents ca22d5c09eed
children e85cb1aba991
files xenvbd/xenvbd.c
line diff
     1.1 --- a/xenvbd/xenvbd.c	Wed Aug 19 16:52:31 2009 +1000
     1.2 +++ b/xenvbd/xenvbd.c	Wed Aug 19 16:54:03 2009 +1000
     1.3 @@ -1306,6 +1306,7 @@ XenVbd_HwScsiAdapterControl(PVOID Device
     1.4  
     1.5    FUNCTION_ENTER();
     1.6    KdPrint((__DRIVER_NAME "     IRQL = %d\n", KeGetCurrentIrql()));
     1.7 +  KdPrint((__DRIVER_NAME "     xvdd = %p\n", xvdd));
     1.8  
     1.9    switch (ControlType)
    1.10    {
    1.11 @@ -1323,13 +1324,13 @@ XenVbd_HwScsiAdapterControl(PVOID Device
    1.12      break;
    1.13    case ScsiRestartAdapter:
    1.14      KdPrint((__DRIVER_NAME "     ScsiRestartAdapter\n"));
    1.15 -    if (XenVbd_InitFromConfig(xvdd) != SP_RETURN_FOUND)
    1.16 -      KeBugCheckEx(DATA_COHERENCY_EXCEPTION, 0, (ULONG_PTR) xvdd, 0, 0);
    1.17      if (!xvdd->inactive)
    1.18 +    {
    1.19 +      if (XenVbd_InitFromConfig(xvdd) != SP_RETURN_FOUND)
    1.20 +        KeBugCheckEx(DATA_COHERENCY_EXCEPTION, 0, (ULONG_PTR) xvdd, 0, 0);
    1.21        XenVbd_StartRingDetection(xvdd);
    1.22 -    //if (xvdd->use_other)
    1.23 -    //  xvdd->ring.nr_ents = BLK_OTHER_RING_SIZE;
    1.24 -   break;
    1.25 +    }
    1.26 +    break;
    1.27    case ScsiSetBootConfig:
    1.28      KdPrint((__DRIVER_NAME "     ScsiSetBootConfig\n"));
    1.29      break;