VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver/Ntdriver.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-23 17:44:48 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-23 17:44:48 +0100
commit453ff2880e1e59e1471d3f16804315879128ce46 (patch)
tree9c7a143d1f5ff91d12e41718d562a430ef6f0e73 /src/Driver/Ntdriver.h
parent5a85c54c6ef556b96cc1ed844620a4ccee1b7837 (diff)
downloadVeraCrypt-453ff2880e1e59e1471d3f16804315879128ce46.tar.gz
VeraCrypt-453ff2880e1e59e1471d3f16804315879128ce46.zip
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.
Diffstat (limited to 'src/Driver/Ntdriver.h')
-rw-r--r--src/Driver/Ntdriver.h1
1 files changed, 1 insertions, 0 deletions
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)