1. 05 6月, 2018 3 次提交
  2. 01 6月, 2018 19 次提交
  3. 11 4月, 2018 15 次提交
  4. 29 1月, 2018 1 次提交
  5. 15 1月, 2018 2 次提交
    • N
      NFSv4: always set NFS_LOCK_LOST when a lock is lost. · dce2630c
      NeilBrown 提交于
      There are 2 comments in the NFSv4 code which suggest that
      SIGLOST should possibly be sent to a process.  In these
      cases a lock has been lost.
      The current practice is to set NFS_LOCK_LOST so that
      read/write returns EIO when a lock is lost.
      So change these comments to code when sets NFS_LOCK_LOST.
      
      One case is when lock recovery after apparent server restart
      fails with NFS4ERR_DENIED, NFS4ERR_RECLAIM_BAD, or
      NFS4ERRO_RECLAIM_CONFLICT.  The other case is when a lock
      attempt as part of lease recovery fails with NFS4ERR_DENIED.
      
      In an ideal world, these should not happen.  However I have
      a packet trace showing an NFSv4.1 session getting
      NFS4ERR_BADSESSION after an extended network parition.  The
      NFSv4.1 client treats this like server reboot until/unless
      it get NFS4ERR_NO_GRACE, in which case it switches over to
      "nograce" recovery mode.  In this network trace, the client
      attempts to recover a lock and the server (incorrectly)
      reports NFS4ERR_DENIED rather than NFS4ERR_NO_GRACE.  This
      leads to the ineffective comment and the client then
      continues to write using the OPEN stateid.
      Signed-off-by: NNeilBrown <neilb@suse.com>
      Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
      dce2630c
    • T
      NFSv4: Convert LOCKU to use nfs4_async_handle_exception() · 82571552
      Trond Myklebust 提交于
      Convert CLOSE so that it specifies the correct stateid and
      inode for the error handling.
      Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
      82571552