HomeFreeBSD

fusefs: Fix a bug during VOP_STRATEGY when the server changes file size

Description

fusefs: Fix a bug during VOP_STRATEGY when the server changes file size

If the FUSE server tells the kernel that a file's size has changed, then
the kernel must invalidate any portion of that file in cache. But the
kernel can't do that during VOP_STRATEGY, because the file's buffers are
already locked. Instead, proceed with the write.

PR: 256937
Reported by: Agata <chogata@moosefs.pro>
Tested by: Agata <chogata@moosefs.pro>
Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D32332

(cherry picked from commit 032a5bd55b3a003d3560435422a95f27f91685fe)

Details

Provenance
asomersAuthored on Oct 3 2021, 5:51 PM
Reviewer
pfg
Differential Revision
D32332: fusefs: Fix a bug during VOP_STRATEGY when the server changes file size
Parents
rGbdd7a3f2a17c: fusefs: fix a recurse-on-non-recursive lockmgr panic
Branches
Unknown
Tags
Unknown