Skip to content

Instantly share code, notes, and snippets.

@louisswarren

louisswarren/encrypt.patch

Last active Mar 25, 2021
Embed
What would you like to do?
Patch for the encrypt hook for supporting disabling of workqueue
--- encrypt 2021-03-26 11:18:21.981072579 +1300
+++ encrypt.no-workqueue 2021-03-26 11:18:21.981072579 +1300
@@ -62,6 +62,12 @@
allow-discards)
cryptargs="${cryptargs} --allow-discards"
;;
+ no-read-workqueue)
+ cryptargs="${cryptargs} --perf-no_read_workqueue"
+ ;;
+ no-write-workqueue)
+ cryptargs="${cryptargs} --perf-no_write_workqueue"
+ ;;
*)
echo "Encryption option '${cryptopt}' not known, ignoring." >&2
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment