Author: fireball
Date: Mon Apr 2 12:00:31 2007
New Revision: 26243
URL:
http://svn.reactos.org/svn/reactos?rev=26243&view=rev
Log:
- Revert double spinlock releasing introduced by 26242 (but thanks for fixing DPRINT :)
).
Modified:
trunk/reactos/drivers/storage/scsiport/scsiport.c
Modified: trunk/reactos/drivers/storage/scsiport/scsiport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/scsiport/s…
==============================================================================
--- trunk/reactos/drivers/storage/scsiport/scsiport.c (original)
+++ trunk/reactos/drivers/storage/scsiport/scsiport.c Mon Apr 2 12:00:31 2007
@@ -2426,7 +2426,9 @@
{
/* Get next logical unit request */
SpiGetNextRequestFromLun(DeviceExtension, LunExtension);
- KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
+
+ /* SpiGetNextRequestFromLun() releases the spinlock */
+ KeLowerIrql(Irql);
}
else
{
@@ -3071,8 +3073,9 @@
/* 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 */