1. 04 Dec, 2009 3 commits
    • Andy Adamson's avatar
      nfs41: add create session into establish_clid · 4d643d1d
      Andy Adamson authored
      Reported-by: default avatarTrond Myklebust <trond.myklebust@netapp.com>
      
      Resetting the clientid from the state manager could result in not confirming
      the clientid due to create session not being called.
      
      Move the create session call from the NFS4CLNT_SESSION_SETUP state manager
      initialize session case into the NFS4CLNT_LEASE_EXPIRED case establish_clid
      call.
      Signed-off-by: default avatarAndy Adamson <andros@netapp.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      4d643d1d
    • Trond Myklebust's avatar
      Merge branch 'devel' into linux-next · 7285f2d2
      Trond Myklebust authored
      7285f2d2
    • NeilBrown's avatar
      NFS4ERR_FILE_OPEN handling in Linux/NFS · 44ed3556
      NeilBrown authored
      NFS4ERR_FILE_OPEN is return by the server when an operation cannot be
      performed because the file is currently open and local (to the server)
      semantics prohibit the operation while the file is open.
      A typical case is a RENAME operation on an MS-Windows platform, which
      prevents rename while the file is open.
      
      While it is possible that such a condition is transitory, it is also
      very possible that the file will be held open for an extended period
      of time thus preventing the operation.
      
      The current behaviour of Linux/NFS is to retry the operation
      indefinitely.  This is not appropriate - we do not expect a rename to
      take an arbitrary amount of time to complete.
      
      Rather, and error should be returned.  The most obvious error code
      would be EBUSY, which is a legal at least for 'rename' and 'unlink',
      and accurately captures the reason for the error.
      
      This patch allows a few retries until about 2 seconds have elapsed,
      then returns EBUSY.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      44ed3556
  2. 03 Dec, 2009 33 commits
  3. 02 Dec, 2009 4 commits