]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Remove a bogus flag setting in pnfs_write_done_resend_to_mds
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 13 Aug 2022 12:46:35 +0000 (08:46 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 13 Aug 2022 17:02:14 +0000 (13:02 -0400)
commita0a0f36ac0a57a85b5d3b5f55c68417490daeca1
treee55a550a3d152d0f8418a65dbe8e8e38ea520247
parent846248dff8dd81dd1f1303c5a1f2a8a1f7b9c4d1
NFS: Remove a bogus flag setting in pnfs_write_done_resend_to_mds

Since pnfs_write_done_resend_to_mds() does not actually call
end_page_writeback() on the pages that are being redirected to the
metadata server, callers of fsync() do not see the I/O as complete until
the writeback to the MDS finishes. We therefore do not need to set
NFS_CONTEXT_RESEND_WRITES, since there is nothing to redrive.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c