NFS: Fix a regression in the referral code
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 7 Nov 2011 20:50:32 +0000 (15:50 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 7 Nov 2011 21:20:00 +0000 (16:20 -0500)
commita6f498a891c730327645a7afa10c5ae977de6fd8
tree1b162b3f76a653cc5292f1ca04cf7c04905246df
parent0486958f57a496212e3c1e3d9194deebba3dc3d4
NFS: Fix a regression in the referral code

Fix a regression that was introduced by commit
0c2e53f11a6dae9e3af5f50f5ad0382e7c3e0cfa (NFS: Remove the unused
"lookupfh()" version of nfs4_proc_lookup()).

In the case where the lookup gets an NFS4ERR_MOVED, we want to return
the result of nfs4_get_referral(). Instead, that value is getting
clobbered by the call to nfs4_handle_exception()...

Reported-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Tested-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c