Commit 275dca4
committed
f2fs: move release of block devices to after kill_block_super()
Call destroy_device_list() and free the f2fs_sb_info from
kill_f2fs_super(), after the call to kill_block_super(). This is
necessary to order it after the call to fscrypt_destroy_keyring() once
generic_shutdown_super() starts calling fscrypt_destroy_keyring() just
after calling ->put_super. This is because fscrypt_destroy_keyring()
may call into f2fs_get_devices() via the fscrypt_operations.
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20231227171429.9223-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>1 parent c1f1f5b commit 275dca4
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
1720 | | - | |
1721 | 1720 | | |
1722 | 1721 | | |
1723 | 1722 | | |
1724 | 1723 | | |
1725 | | - | |
1726 | 1724 | | |
1727 | 1725 | | |
1728 | 1726 | | |
| |||
1738 | 1736 | | |
1739 | 1737 | | |
1740 | 1738 | | |
1741 | | - | |
1742 | 1739 | | |
1743 | 1740 | | |
1744 | 1741 | | |
| |||
4902 | 4899 | | |
4903 | 4900 | | |
4904 | 4901 | | |
4905 | | - | |
4906 | | - | |
| 4902 | + | |
4907 | 4903 | | |
| 4904 | + | |
4908 | 4905 | | |
4909 | 4906 | | |
4910 | 4907 | | |
| |||
4931 | 4928 | | |
4932 | 4929 | | |
4933 | 4930 | | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
4934 | 4937 | | |
4935 | 4938 | | |
4936 | 4939 | | |
| |||
0 commit comments