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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 19 Jan 2014 14:31:59 +0000 (09:31 -0500)
commit64590daa9e0dfb3aad89e3ab9230683b76211d5b
tree376c49758cd4fabf70ca51a57e0a96192c931a5b
parent263b4509ec4d47e0da3e753f85a39ea12d1eff24
NFSv4.1: Handle errors correctly in nfs41_walk_client_list

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.

Cc: stable@vger.kernel.org # 3.7.x: 7b1f1fd1842e6: NFSv4/4.1: Fix bugs in
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4client.c