linux/fs/f2fs
Christian Brauner 22650a9982
fs,block: yield devices early
Currently a device is only really released once the umount returns to
userspace due to how file closing works. That ultimately could cause
an old umount assumption to be violated that concurrent umount and mount
don't fail. So an exclusively held device with a temporary holder should
be yielded before the filesystem is gone. Add a helper that allows
callers to do that. This also allows us to remove the two holder ops
that Linus wasn't excited about.

Link: https://lore.kernel.org/r/20240326-vfs-bdev-end_holder-v1-1-20af85202918@kernel.org
Fixes: f3a608827d ("bdev: open block device as files") # mainline only
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2024-03-27 13:17:15 +01:00
..
acl.c
acl.h
checkpoint.c f2fs: unify the error handling of f2fs_is_valid_blkaddr 2024-03-12 18:25:17 -07:00
compress.c
data.c f2fs: unify the error handling of f2fs_is_valid_blkaddr 2024-03-12 18:25:17 -07:00
debug.c
dir.c
extent_cache.c f2fs: unify the error handling of f2fs_is_valid_blkaddr 2024-03-12 18:25:17 -07:00
f2fs.h f2fs update for 6.9-rc1 2024-03-18 11:26:00 -07:00
file.c f2fs: fix to avoid use-after-free issue in f2fs_filemap_fault 2024-03-14 09:14:53 -07:00
gc.c f2fs: fix to handle error paths of {new,change}_curseg() 2024-03-12 18:25:17 -07:00
gc.h
hash.c
inline.c
inode.c
iostat.c
iostat.h
Kconfig
Makefile
namei.c f2fs update for 6.9-rc1 2024-03-18 11:26:00 -07:00
node.c
node.h
recovery.c f2fs: unify the error handling of f2fs_is_valid_blkaddr 2024-03-12 18:25:17 -07:00
segment.c f2fs update for 6.9-rc1 2024-03-18 11:26:00 -07:00
segment.h
shrinker.c
super.c fs,block: yield devices early 2024-03-27 13:17:15 +01:00
sysfs.c
verity.c
xattr.c
xattr.h