nfsd: give up on CB_LAYOUTRECALLs after two lease periods
authorJeff Layton <jlayton@poochiereds.net>
Tue, 8 Dec 2015 12:23:48 +0000 (07:23 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Jan 2016 21:47:51 +0000 (16:47 -0500)
commit6b9b21073d3b250e17812cd562fffc9006962b39
treed8f01815c10c3f8affc866a913307e4ec53a7391
parent691412b4438da1b77ff3078de0546023d244d841
nfsd: give up on CB_LAYOUTRECALLs after two lease periods

Have the CB_LAYOUTRECALL code treat NFS4_OK and NFS4ERR_DELAY returns
equivalently. Change the code to periodically resend CB_LAYOUTRECALLS
until the ls_layouts list is empty or the client returns a different
error code.

If we go for two lease periods without the list being emptied or the
client sending a hard error, then we give up and clean out the list
anyway.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Tested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4layouts.c