mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-25 05:51:34 +00:00
Windows driver: revert IRP completion overhaul changes until more tests are conducted
This commit is contained in:
@@ -46,7 +46,6 @@ typedef struct _COMPLETE_IRP_WORK_ITEM
|
||||
ULONG_PTR Information;
|
||||
void* Item;
|
||||
LIST_ENTRY ListEntry; // For managing free work items
|
||||
BOOLEAN FromPool; // TRUE if taken from prealloc pool
|
||||
} COMPLETE_IRP_WORK_ITEM, * PCOMPLETE_IRP_WORK_ITEM;
|
||||
|
||||
typedef struct
|
||||
@@ -141,13 +140,11 @@ typedef struct
|
||||
PCOMPLETE_IRP_WORK_ITEM WorkItemPool;
|
||||
ULONG MaxWorkItems;
|
||||
LIST_ENTRY FreeWorkItemsList;
|
||||
KSEMAPHORE WorkItemSemaphore;
|
||||
KSPIN_LOCK WorkItemLock;
|
||||
|
||||
volatile LONG ActiveWorkItems;
|
||||
KEVENT NoActiveWorkItemsEvent;
|
||||
|
||||
// signaled whenever a pooled work item returns to the free list
|
||||
KEVENT WorkItemAvailableEvent;
|
||||
} EncryptedIoQueue;
|
||||
|
||||
|
||||
@@ -159,7 +156,6 @@ typedef struct
|
||||
ULONG OriginalLength;
|
||||
LARGE_INTEGER OriginalOffset;
|
||||
NTSTATUS Status;
|
||||
ULONG_PTR BytesCompleted; // actual bytes transferred across all fragments
|
||||
|
||||
#ifdef TC_TRACE_IO_QUEUE
|
||||
LARGE_INTEGER OriginalIrpOffset;
|
||||
@@ -179,8 +175,6 @@ typedef struct
|
||||
ULONG EncryptedLength;
|
||||
uint8 *Data;
|
||||
uint8 *OrigDataBufferFragment;
|
||||
ULONG ActualBytes; // actual bytes transferred for this fragment (0 on failure)
|
||||
UCHAR WiRetryCount; // count how many times we failed to get a work item
|
||||
|
||||
LIST_ENTRY ListEntry;
|
||||
LIST_ENTRY CompletionListEntry;
|
||||
|
||||
Reference in New Issue
Block a user