summaryrefslogtreecommitdiff
path: root/include/uapi/linux/loop.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2025-10-15 16:06:33 +0200
committerJan Kara <jack@suse.cz>2026-01-23 13:26:45 +0100
commit74bd284537b3447c651588101c32a203e4fe1a32 (patch)
treeee7b44b3d8cf20f36058716485d48759a2d3d2c7 /include/uapi/linux/loop.h
parenta05fc7edd988c176491487ef0ae4dbf5f7a64cd7 (diff)
fsnotify: Shutdown fsnotify before destroying sb's dcache
Currently fsnotify_sb_delete() was called after we have evicted superblock's dcache and inode cache. This was done mainly so that we iterate as few inodes as possible when removing inode marks. However, as Jakub reported, this is problematic because for some filesystems encoding of file handles uses sb->s_root which gets cleared as part of dcache eviction. And either delayed fsnotify events or reading fdinfo for fsnotify group with marks on fs being unmounted may trigger encoding of file handles during unmount. So move shutdown of fsnotify subsystem before shrinking of dcache. Link: https://lore.kernel.org/linux-fsdevel/CAOQ4uxgXvwumYvJm3cLDFfx-TsU3g5-yVsTiG=6i8KS48dn0mQ@mail.gmail.com/ Reported-by: Jakub Acs <acsjakub@amazon.de> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/uapi/linux/loop.h')
0 files changed, 0 insertions, 0 deletions