mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:06:22 +00:00
[SCSIPORT] Addendum to 58ad5d9e02
This commit is contained in:
parent
58ad5d9e02
commit
b089903520
1 changed files with 12 additions and 3 deletions
|
@ -400,7 +400,10 @@ SpiGetNextRequestFromLun(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Release the spinlock, without clearing any flags and exit */
|
/* Release the spinlock, without clearing any flags and exit */
|
||||||
KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
|
if (OldIrql != NULL)
|
||||||
|
KeReleaseSpinLock(&DeviceExtension->SpinLock, *OldIrql);
|
||||||
|
else
|
||||||
|
KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -429,7 +432,10 @@ SpiGetNextRequestFromLun(
|
||||||
LunExtension->SortKey++;
|
LunExtension->SortKey++;
|
||||||
|
|
||||||
/* Release the spinlock */
|
/* Release the spinlock */
|
||||||
KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
|
if (OldIrql != NULL)
|
||||||
|
KeReleaseSpinLock(&DeviceExtension->SpinLock, *OldIrql);
|
||||||
|
else
|
||||||
|
KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
|
||||||
|
|
||||||
/* Start the next pending request */
|
/* Start the next pending request */
|
||||||
IoStartPacket(DeviceExtension->Common.DeviceObject, NextIrp, (PULONG)NULL, NULL);
|
IoStartPacket(DeviceExtension->Common.DeviceObject, NextIrp, (PULONG)NULL, NULL);
|
||||||
|
@ -437,7 +443,10 @@ SpiGetNextRequestFromLun(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Release the spinlock */
|
/* Release the spinlock */
|
||||||
KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
|
if (OldIrql != NULL)
|
||||||
|
KeReleaseSpinLock(&DeviceExtension->SpinLock, *OldIrql);
|
||||||
|
else
|
||||||
|
KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue