]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix panic when writing with O_DIRECT and using writeback cache
authorasomers <asomers@FreeBSD.org>
Sun, 28 Jul 2019 15:17:32 +0000 (15:17 +0000)
committerasomers <asomers@FreeBSD.org>
Sun, 28 Jul 2019 15:17:32 +0000 (15:17 +0000)
commit10eed53afb84b5b9920768cc102c0caeab5c4df0
tree15f608a5f2bcdd8f4a00ba182e3d47fd6d2fec2d
parent90daad70316ee4bed2f8efdcec2898032d6bbb71
fusefs: fix panic when writing with O_DIRECT and using writeback cache

When a fusefs file system is mounted using the writeback cache, the cache
may still be bypassed by opening a file with O_DIRECT.  When writing with
O_DIRECT, the cache must be invalidated for the affected portion of the
file.  Fix some panics caused by inadvertently invalidating too much.

Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_io.c
tests/sys/fs/fusefs/write.cc