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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Aug 2011 04:58:39 +0000 (21:58 -0700)
commitf6d7de0ee45c2408056bb2a9e2b21ba86fbfd833
tree5ac496786f1e0a8bbef8d161de1e7c9e58d54e61
parentefc977be4683816c39dfab38a34f68e07b78997e
nfsd: don't break lease on CLAIM_DELEGATE_CUR

commit 0c12eaffdf09466f36a9ffe970dda8f4aeb6efc0 upstream.

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>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4state.c