- Revert double spinlock releasing introduced by 26242 (but thanks for fixing DPRINT...
authorAleksey Bragin <aleksey@reactos.org>
Mon, 2 Apr 2007 08:00:31 +0000 (08:00 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 2 Apr 2007 08:00:31 +0000 (08:00 +0000)
svn path=/trunk/; revision=26243

reactos/drivers/storage/scsiport/scsiport.c

index a3aa8da..66b3482 100644 (file)
@@ -2426,7 +2426,9 @@ ScsiPortDispatchScsi(IN PDEVICE_OBJECT DeviceObject,
         {
             /* Get next logical unit request */
             SpiGetNextRequestFromLun(DeviceExtension, LunExtension);
-            KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
+
+            /* SpiGetNextRequestFromLun() releases the spinlock */
+            KeLowerIrql(Irql);
         }
         else
         {
@@ -3071,8 +3073,9 @@ SpiSendInquiry (IN PDEVICE_OBJECT DeviceObject,
                 /* Process the request */
                 SpiGetNextRequestFromLun(DeviceObject->DeviceExtension, LunExtension);
 
-                /* Release spinlock */
-                KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
+                /* SpiGetNextRequestFromLun() releases the spinlock,
+                   so we just lower irql back to what it was before */
+                KeLowerIrql(Irql);
             }
 
             /* Check if data overrun happened */