nfsd: deal with DELEGRETURN racing with CB_RECALL
authorAndrew Elble <aweits@rit.edu>
Mon, 31 Aug 2015 16:06:41 +0000 (12:06 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 2 Sep 2015 14:05:28 +0000 (10:05 -0400)
commita457974f1b9524a6e7d0a0be10df760e7802d32f
tree37b55e649341948a5dcff9201e68fdaeae213d16
parentf984a7ce58ea9a12eca7f960bdf68124c8589b60
nfsd: deal with DELEGRETURN racing with CB_RECALL

We have observed the server sending recalls for delegation stateids
that have already been successfully returned. Change
nfsd4_cb_recall_done() to return success if the client has returned
the delegation. While this does not completely eliminate the sending
of recalls for delegations that have already been returned, this
does prevent unnecessarily declaring the callback path to be down.

Reported-by: Eric Meddaugh <etmsys@rit.edu>
Signed-off-by: Andrew Elble <aweits@rit.edu>
Acked-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c