summaryrefslogtreecommitdiff
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2024-02-28 10:23:31 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-06 14:48:42 +0000
commitbe8a177250b2ba387a55ce37dd4a8046a0ccab55 (patch)
treef3bec69bd99ffa5648dea1451ef31e7135472349 /net/unix/garbage.c
parentfa8c776f4c323a9fbc8ddf25edcb962083391430 (diff)
NFS: Fix data corruption caused by congestion.
when AOP_WRITEPAGE_ACTIVATE is returned (as NFS does when it detects congestion) it is important that the folio is redirtied. nfs_writepage_locked() doesn't do this, so files can become corrupted as writes can be lost. Note that this is not needed in v6.8 as AOP_WRITEPAGE_ACTIVATE cannot be returned. It is needed for kernels v5.18..v6.7. Prior to 6.3 the patch is different as it needs to mention "page", not "folio". Reported-and-tested-by: Jacek Tomaka <Jacek.Tomaka@poczta.fm> Fixes: 6df25e58532b ("nfs: remove reliance on bdi congestion") Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions