Skip to content

feat: bypass dm-crypt workqueues on non-rotational storage - #34

Open
sabaini wants to merge 1 commit into
masterfrom
dmcrypt-workqueue-bypass
Open

sabaini wants to merge 1 commit into
masterfrom
dmcrypt-workqueue-bypass

Conversation

@sabaini

@sabaini sabaini commented Oct 27, 2026

Copy link
Copy Markdown

Open LUKS devices with --perf-no_read_workqueue and --perf-no_write_workqueue when the kernel is 5.9 or later, cryptsetup is 2.3.4 or later, and all backing storage is non-rotational.

This applies to encrypt, enroll and decrypt, including boot-time unlocking. Set bypass_workqueues = false in the [dmcrypt] section of the configuration to stop vaultlocker adding the options. Flags stored persistently in a LUKS2 header still apply.

Fixes: https://bugs.launchpad.net/vaultlocker/+bug/2172271

Open LUKS devices with --perf-no_read_workqueue and
--perf-no_write_workqueue when the kernel is 5.9 or later, cryptsetup
is 2.3.4 or later, and all backing storage is non-rotational. Backing
storage is resolved through sysfs, following partitions to their
parent device and device-mapper and MD devices to their slaves. If
support cannot be determined, vaultlocker does not add the options.

This applies to encrypt, enroll and decrypt, including boot-time
unlocking. Set bypass_workqueues = false in the [dmcrypt] section of
the configuration to stop vaultlocker adding the options. Flags
stored persistently in a LUKS2 header still apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Peter Sabaini <peter@sabaini.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant