1. 05 1月, 2012 1 次提交
  2. 10 12月, 2011 1 次提交
  3. 08 11月, 2011 1 次提交
  4. 05 11月, 2011 1 次提交
    • J
      nfs: when attempting to open a directory, fall back on normal lookup (try #5) · 1788ea6e
      Jeff Layton 提交于
      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: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      1788ea6e
  5. 31 10月, 2011 1 次提交
  6. 20 10月, 2011 1 次提交
  7. 19 10月, 2011 3 次提交
  8. 25 8月, 2011 4 次提交
  9. 01 8月, 2011 4 次提交
  10. 20 7月, 2011 3 次提交
  11. 13 7月, 2011 6 次提交
  12. 15 6月, 2011 3 次提交
  13. 30 5月, 2011 3 次提交
  14. 28 5月, 2011 1 次提交
  15. 12 5月, 2011 1 次提交
    • A
      NFSv41: Resend on NFS4ERR_RETRY_UNCACHED_REP · a8a4ae3a
      Andy Adamson 提交于
      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: NAndy Adamson <andros@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      a8a4ae3a
  16. 25 4月, 2011 2 次提交
  17. 19 4月, 2011 2 次提交
  18. 14 4月, 2011 2 次提交