freebsd-nq/tests/sys/fs
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
..
fusefs fusefs: fix a recurse-on-non-recursive lockmgr panic 2021-10-06 14:07:33 -06:00
tmpfs
Makefile Refine fusefs test workaround for mips+llvm 2020-01-06 18:25:58 +00:00
Makefile.depend
Makefile.inc