]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: don't break lease on CLAIM_DELEGATE_CUR
authorCasey Bodley <cbodley@citi.umich.edu>
Sat, 23 Jul 2011 18:58:10 +0000 (14:58 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 23 Jul 2011 18:58:17 +0000 (14:58 -0400)
commitdf635de3857ee3679c65a68a1198d36118d6e02c
treef799f3f33325fbe6411341375a43b0d9dba7e920
parentd2a879c7d788fee1496d2e2933334c66c0e09639
nfsd: don't break lease on CLAIM_DELEGATE_CUR

CLAIM_DELEGATE_CUR is used in response to a broken lease; allowing it
to break the lease and return EAGAIN leaves the client unable to make
progress in returning the delegation

nfs4_get_vfs_file() now takes struct nfsd4_open for access to the
claim type, and calls nfsd_open() with NFSD_MAY_NOT_BREAK_LEASE when
claim type is CLAIM_DELEGATE_CUR

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c