Skip to content
Commit d3a7bd42 authored by Luis Henriques's avatar Luis Henriques Committed by Eric Biggers
Browse files

fscrypt: clear keyring before calling key_put()



Now that the key quotas are handled immediately on key_put() instead of
being postponed to the key management garbage collection worker, a call
to keyring_clear() is all that is required in fscrypt_put_master_key()
so that the keyring clean-up is also done synchronously.  This patch
should fix the fstest generic/581 flakiness.

Signed-off-by: default avatarLuis Henriques <lhenriques@suse.de>
Link: https://lore.kernel.org/r/20240206101619.8083-1-lhenriques@suse.de


[ebiggers: added comment]
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 5befc19c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment