• NeilBrown's avatar
    NFS: Improve warning message when locks are lost. · 3e2910c7
    NeilBrown authored
    NFSv4 can lose locks if, for example there is a network partition for
    longer than the lease period.  When this happens a warning message
    
      NFS: __nfs4_reclaim_open_state: Lock reclaim failed!
    
    is generated, possibly once for each lock (though rate limited).
    
    This is potentially misleading as is can be read as suggesting that lock
    reclaim was attempted.  However the default behaviour is to not attempt
    to recover locks (except due to server report).
    
    This patch changes the reporting to produce at most one message for each
    attempt to recover all state from a given server.  The message reports
    the server name and the number of locks lost if that number is non-zero.
    It reports that locks were lost and give no suggestion as to whether
    there was an attempt or not.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    3e2910c7
nfs4state.c 71.8 KB