]> git.baikalelectronics.ru Git - kernel.git/commit
NFS4: Avoid migration loops
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 30 Aug 2016 13:20:32 +0000 (09:20 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 30 Aug 2016 13:26:32 +0000 (09:26 -0400)
commite3bc8f288e849b4a21213314a13226d01d16e4aa
treee176efeec7f9baa9e9d30429cab9f85ae838f7a1
parent4b41d858aa637db18b35079ad8b540f886a5b80d
NFS4: Avoid migration loops

If a server returns itself as a location while migrating, the client may
end up getting stuck attempting to migrate twice to the same server.  Catch
this by checking if the nfs_client found is the same as the existing
client.  For the other two callers to nfs4_set_client, the nfs_client will
always be ERR_PTR(-EINVAL).

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4client.c