Home
last modified time | relevance | path

Searched hist:d18cc1fda25295416a2855d44c2936db01df9eec (Results 1 – 2 of 2) sorted by relevance

/linux/fs/nfs/
H A Ddelegation.hdiff d18cc1fda25295416a2855d44c2936db01df9eec Thu Dec 03 14:10:17 CET 2009 Trond Myklebust <Trond.Myklebust@netapp.com> NFSv4: Fix a potential state manager deadlock when returning delegations

The nfsv4 state manager could potentially deadlock inside
__nfs_inode_return_delegation() if the server reboots, so that the calls to
nfs_msync_inode() end up waiting on state recovery to complete.

Also ensure that if a server reboot or network partition causes us to have
to stop returning delegations, that NFS4CLNT_DELEGRETURN is set so that
the state manager can resume any outstanding delegation returns after it
has dealt with the state recovery situation.

Finally, ensure that the state manager doesn't wait for the DELEGRETURN
call to complete. It doesn't need to, and that too can cause a deadlock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
H A Ddelegation.cdiff d18cc1fda25295416a2855d44c2936db01df9eec Thu Dec 03 14:10:17 CET 2009 Trond Myklebust <Trond.Myklebust@netapp.com> NFSv4: Fix a potential state manager deadlock when returning delegations

The nfsv4 state manager could potentially deadlock inside
__nfs_inode_return_delegation() if the server reboots, so that the calls to
nfs_msync_inode() end up waiting on state recovery to complete.

Also ensure that if a server reboot or network partition causes us to have
to stop returning delegations, that NFS4CLNT_DELEGRETURN is set so that
the state manager can resume any outstanding delegation returns after it
has dealt with the state recovery situation.

Finally, ensure that the state manager doesn't wait for the DELEGRETURN
call to complete. It doesn't need to, and that too can cause a deadlock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>