Re: [PATCH v3 2/2] NFS: Enable the RWF_DONTCACHE flag for the NFS client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 18, 2025 at 08:56:31AM -0700, Trond Myklebust wrote:
> On Mon, 2025-08-18 at 16:21 +0100, Matthew Wilcox wrote:
> > I don't think this technique is "safe".  By clearing the flag early,
> > the page cache can't see that a folio that was created by dropbehind
> > has now been reused and should have its dropbehind flag cleared.  So
> > we
> > might see pages dropped from the cache that really should not be.
> 
> The only alternative would be to add back in a helper in mm/filemap.c
> that does the normal folio_end_writeback() routine, but ignores the
> dropbehind flag. (folio_end_writeback_ignore_dropbehind()?)

Can you remind me why we clear the writeback flag as soon as the WRITE
completes instead of leaving it set until the COMMIT completes?




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux