1. 05 Jan, 2012 1 commit
  2. 10 Dec, 2011 1 commit
  3. 07 Nov, 2011 1 commit
  4. 04 Nov, 2011 1 commit
    • Jeff Layton's avatar
      nfs: when attempting to open a directory, fall back on normal lookup (try #5) · 1788ea6e
      Jeff Layton authored
      commit d953126a
      
       changed how nfs_atomic_lookup handles an -EISDIR return
      from an OPEN call. Prior to that patch, that caused the client to fall
      back to doing a normal lookup. When that patch went in, the code began
      returning that error to userspace. The d_revalidate codepath however
      never had the corresponding change, so it was still possible to end up
      with a NULL ctx->state pointer after that.
      
      That patch caused a regression. When we attempt to open a directory that
      does not have a cached dentry, that open now errors out with EISDIR. If
      you attempt the same open with a cached dentry, it will succeed.
      
      Fix this by reverting the change in nfs_atomic_lookup and allowing
      attempts to open directories to fall back to a normal lookup
      
      Also, add a NFSv4-specific f_ops->open routine that just returns
      -ENOTDIR. This should never be called if things are working properly,
      but if it ever is, then the dprintk may help in debugging.
      
      To facilitate this, a new file_operations field is also added to the
      nfs_rpc_ops struct.
      
      Cc: stable@kernel.org
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      1788ea6e
  5. 31 Oct, 2011 1 commit
  6. 19 Oct, 2011 1 commit
  7. 18 Oct, 2011 3 commits
  8. 24 Aug, 2011 4 commits
  9. 31 Jul, 2011 4 commits
  10. 20 Jul, 2011 3 commits
  11. 12 Jul, 2011 6 commits
  12. 15 Jun, 2011 3 commits
  13. 29 May, 2011 3 commits
  14. 27 May, 2011 1 commit
  15. 11 May, 2011 1 commit
    • Andy Adamson's avatar
      NFSv41: Resend on NFS4ERR_RETRY_UNCACHED_REP · a8a4ae3a
      Andy Adamson authored
      
      Free the slot and resend the RPC with new session <slot#,seq#>.
      
      For nfs4_async_handle_error, return -EAGAIN and set the task->tk_status to 0
      to restart the async rpc in the rpc_restart_call_prepare state which resets
      the slot.
      
      For nfs4_handle_exception, retrying a call that uses nfs4_call_sync will
      reset the slot via nfs41_call_sync_prepare.
      
      For open/close/lock/locku/delegreturn/layoutcommit/unlink/rename/write
      cachethis is true, so these operations will not trigger an
      NFS4ERR_RETRY_UNCACHED_REP.
      Signed-off-by: default avatarAndy Adamson <andros@netapp.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      a8a4ae3a
  16. 24 Apr, 2011 2 commits
  17. 18 Apr, 2011 2 commits
  18. 13 Apr, 2011 2 commits