freebsd-dev/sys/fs/fuse
Alan Somers 7430017b99 fusefs: fix a recurse-on-non-recursive lockmgr panic
fuse_vnop_bmap needs to know the file's size in order to calculate the
optimum amount of readahead.  If the file's size is unknown, it must ask
the FUSE server.  But if the file's data was previously cached and the
server reports that its size has shrunk, fusefs must invalidate the
cached data.  That's not possible during VOP_BMAP because the buffer
object is already locked.

Fix the panic by not querying the FUSE server for the file's size during
VOP_BMAP if we don't need it.  That's also a a slight performance
optimization.

PR:		256937
Reported by:	Agata <chogata@moosefs.pro>
Tested by:	Agata <chogata@moosefs.pro>
MFC after:	2 weeks
2021-10-06 14:07:33 -06:00
..
fuse_device.c Simplify fuse_device_filt_write 2021-06-16 15:54:24 -06:00
fuse_file.c fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_file.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_internal.c fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_internal.h fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_io.c fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_io.h
fuse_ipc.c fusefs: ensure that FUSE ops' headers' unique values are actually unique 2021-06-19 14:45:29 -06:00
fuse_ipc.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_kernel.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_main.c
fuse_node.c fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_node.h fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_vfsops.c fusefs: quiet some cache-related warnings 2021-10-06 14:07:33 -06:00
fuse_vnops.c fusefs: fix a recurse-on-non-recursive lockmgr panic 2021-10-06 14:07:33 -06:00
fuse.h