NFS: Getattr doesn't require data sync semantics
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 25 Jun 2016 21:45:40 +0000 (17:45 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 5 Jul 2016 23:11:06 +0000 (19:11 -0400)
commit79566ef018f53a181f067afdf7bef9cc53f9d34b
treef1c850d39be6b1670e50eaf8baf92d4cc95831e6
parent651b0e702981304f77091b82870a01480705f4fe
NFS: Getattr doesn't require data sync semantics

When retrieving stat() information, NFS unfortunately does require us to
sync writes to disk in order to ensure that mtime and ctime are up to
date. However we shouldn't have to ensure that those writes are persisted.

Relaxing that requirement does mean that we may see an mtime/ctime change
if the server reboots and forces us to replay all writes.

The exception to this rule are pNFS clients that are required to send
layoutcommit, however that is dealt with by the call to pnfs_sync_inode()
in _nfs_revalidate_inode().

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c
This page took 0.024441 seconds and 5 git commands to generate.