diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-02-05 11:43:28 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-02-11 15:33:12 -0500 |
commit | d25be546a86fcb2ea919fb909a42b79aa40b816c (patch) | |
tree | 5a2a62efa453f8c85299063cc83a1bd819f0778a /arch | |
parent | 9a99af494bd7141d567d00b5ef94b141821e158c (diff) | |
download | op-kernel-dev-d25be546a86fcb2ea919fb909a42b79aa40b816c.zip op-kernel-dev-d25be546a86fcb2ea919fb909a42b79aa40b816c.tar.gz |
NFSv4.1: Don't lose locks when a server reboots during delegation return
If the server reboots while we are converting a delegation into
OPEN/LOCK stateids as part of a delegation return, the current code
will simply exit with an error. This causes us to lose both
delegation state and locking state (i.e. locking atomicity).
Deal with this by exposing the delegation stateid during delegation
return, so that we can recover the delegation, and then resume
open/lock recovery.
Note that not having to hold the nfs_inode->rwsem across the
calls to nfs_delegation_claim_opens() also fixes a deadlock against
the NFSv4.1 reboot recovery code.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions