]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.1: Handle errors correctly in nfs41_walk_client_list
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 17 Jan 2014 22:03:41 +0000 (17:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:55:33 +0000 (13:55 -0800)
commitd0d45c8ab8eca458aaffc019dba27fdcd6fe4407
tree0ba1918c691e19068e9433931c09912cc8b561c3
parent2591ac9037720a8d6de35734912ae5b86b011546
NFSv4.1: Handle errors correctly in nfs41_walk_client_list

commit 64590daa9e0dfb3aad89e3ab9230683b76211d5b upstream.

Both nfs41_walk_client_list and nfs40_walk_client_list expect the
'status' variable to be set to the value -NFS4ERR_STALE_CLIENTID
if the loop fails to find a match.
The problem is that the 'pos->cl_cons_state > NFS_CS_READY' changes
the value of 'status', and sets it either to the value '0' (which
indicates success), or to the value EINTR.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4client.c