From 453ff2880e1e59e1471d3f16804315879128ce46 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 23 Nov 2024 17:44:48 +0100 Subject: Windows Driver: Make max work items count configurable. Increase default to 1024. Queue write IRPs. - Made the maximum work items count configurable to allow flexibility based on system needs. - Increased the default value of max work items count to 1024 to better handle high-throughput scenarios. - Queue write IRPs in system worker thread to avoid potential deadlocks in write scenarios. --- src/Driver/Ntdriver.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Driver/Ntdriver.h') diff --git a/src/Driver/Ntdriver.h b/src/Driver/Ntdriver.h index 3995ffdf..b03b5e93 100644 --- a/src/Driver/Ntdriver.h +++ b/src/Driver/Ntdriver.h @@ -128,6 +128,7 @@ extern BOOL AllowWindowsDefrag; extern int EncryptionIoRequestCount; extern int EncryptionItemCount; extern int EncryptionFragmentSize; +extern int EncryptionMaxWorkItems; extern BOOL EraseKeysOnShutdown; /* Helper macro returning x seconds in units of 100 nanoseconds */ #define WAIT_SECONDS(x) ((x)*10000000) -- cgit v1.2.3