linux-stable/drivers/mtd
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
..
chips mtd: chips: remove redundant assignment to variable timeo 2024-02-26 11:26:28 +01:00
devices fs,block: yield devices early 2024-03-27 13:17:15 +01:00
hyperbus
lpddr
maps This includes the following changes related to sparc for v6.9: 2024-03-15 12:47:21 -07:00
nand MTD 2024-03-15 12:29:57 -07:00
parsers
spi-nor mtd: spi-nor: core: correct type of i 2024-03-13 23:22:19 +01:00
tests
ubi This pull request contains updates for UBI and UBIFS: 2024-03-21 15:09:29 -07:00
Kconfig
Makefile
ftl.c
inftlcore.c
inftlmount.c
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c
mtdpstore.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c