]> www.infradead.org Git - users/dwmw2/linux.git/commit
fs: move fscrypt keyring destruction to after ->put_super
authorJosef Bacik <josef@toxicpanda.com>
Wed, 27 Dec 2023 17:14:29 +0000 (11:14 -0600)
committerEric Biggers <ebiggers@google.com>
Thu, 28 Dec 2023 03:56:01 +0000 (21:56 -0600)
commit2a0e85719892a1d63f8f287563e2c1778a77879e
tree31cc8a6fba07bb76f363e0e892df56d1851e4e66
parent275dca4630c165edea9abe27113766bc1173f878
fs: move fscrypt keyring destruction to after ->put_super

btrfs has a variety of asynchronous things we do with inodes that can
potentially last until ->put_super, when we shut everything down and
clean up all of our async work.  Due to this we need to move
fscrypt_destroy_keyring() to after ->put_super, otherwise we get
warnings about still having active references on the master key.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Link: https://lore.kernel.org/r/20231227171429.9223-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/super.c