]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Add mount option 'softreval'
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 20:39:37 +0000 (15:39 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:33 +0000 (10:54 -0500)
commitb7d3e29ef6473c5692541bd265caa473d989b8a8
tree50a1d7f2e8791c3af949391359fb1279b1073244
parentefa2c0c2581d45395f747353b983e800ab7a1871
NFS: Add mount option 'softreval'

Add a mount option 'softreval' that allows attribute revalidation 'getattr'
calls to time out, and causes them to fall back to using the cached
attributes.
The use case for this option is for ensuring that we can still (slowly)
traverse paths and use cached information even when the server is down.
Once the server comes back up again, the getattr calls start succeeding,
and the caches will revalidate as usual.

The 'softreval' mount option is automatically enabled if you have
specified 'softerr'.  It can be turned off using the options
'nosoftreval', or 'hard'.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/fs_context.c
fs/nfs/inode.c
fs/nfs/nfs3proc.c
fs/nfs/nfs4proc.c
fs/nfs/proc.c
fs/nfs/super.c
include/linux/nfs_fs_sb.h