• B
    NFS: Remove bad delegations during open recovery · 6938867e
    Bryan Schumaker 提交于
    I put the client into an open recovery loop by:
    	Client: Open file
    		read half
    	Server: Expire client (echo 0 > /sys/kernel/debug/nfsd/forget_clients)
    	Client: Drop vm cache (echo 3 > /proc/sys/vm/drop_caches)
    		finish reading file
    
    This causes a loop because the client never updates the nfs4_state after
    discovering that the delegation is invalid.  This means it will keep
    trying to read using the bad delegation rather than attempting to re-open
    the file.
    Signed-off-by: NBryan Schumaker <bjschuma@netapp.com>
    CC: stable@vger.kernel.org [3.4+]
    Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
    6938867e
nfs4proc.c 186.2 KB