> On Jun 1, 2022, at 9:49 PM, Wang Yugui <wangyugui@xxxxxxxxxxxx> wrote: > > Hi, > >> Certainly, though, the filecache plays somewhat different roles >> for legacy NFS and NFSv4. I've been toying with the idea of >> maintaining separate filecaches for NFSv3 and NFSv4, since >> the garbage collection and shrinker rules are fundamentally >> different for the two, and NFSv4 wants a file closed completely >> (no lingering open) when it does a CLOSE or DELEGRETURN. > > if NFSv4 closed a file completely (no lingering open) when it does a > CLOSE or DELEGRETURN, > then the flowing problem seems to be fixed too. > https://lore.kernel.org/linux-nfs/20211002111419.2C83.409509F4@xxxxxxxxxxxx/ I agree, that's probably related. But let's document this issue as a separate bug, in case it isn't actually as related as it looks like at first. Can you open a bug report on bugzilla.linux-nfs.org? kernel/server -- Chuck Lever