Skip to content

Instantly share code, notes, and snippets.

@louisswarren
Last active March 25, 2021 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louisswarren/97d087529045317811adb2d09ab0bd5c to your computer and use it in GitHub Desktop.
Save louisswarren/97d087529045317811adb2d09ab0bd5c to your computer and use it in GitHub Desktop.
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