]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix error handling for clients that fail to return the layout
authorJeff Layton <jlayton@redhat.com>
Thu, 20 Oct 2016 16:21:34 +0000 (12:21 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 1 Nov 2016 19:47:43 +0000 (15:47 -0400)
commit2ee2fa4362fdec653f9ff609b88d60fefd8a9ab4
tree22308c7ee8596b7328260ea6f929197c9a69abf6
parent420f385531bb3644b764a05211e0ac0821cae6df
nfsd: fix error handling for clients that fail to return the layout

Currently, when the client continually returns NFS4ERR_DELAY on a
CB_LAYOUTRECALL, we'll give up trying to retransmit after two lease
periods, but leave the layout in place.

What we really need to do here is fence the client in this case. Have it
fall through to that code in that case instead of into the
NFS4ERR_NOMATCHING_LAYOUT case.

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