Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFS: File unlock needs to be a metadata synchronisation point

File unlock needs to update both data and metadata on the NFS server
in order to act as a synchronisation point for other clients.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

+1 -1
+1 -1
fs/nfs/file.c
··· 780 780 * Flush all pending writes before doing anything 781 781 * with locks.. 782 782 */ 783 - nfs_sync_mapping(filp->f_mapping); 783 + vfs_fsync(filp, 0); 784 784 785 785 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); 786 786 if (!IS_ERR(l_ctx)) {