commit | 52442f9b11b7e5d4a38d99143011831fd171f8d9 | [log] [tgz] |
---|---|---|
author | Benjamin Coddington <bcodding@redhat.com> | Tue Aug 30 09:20:32 2016 -0400 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Tue Aug 30 09:26:32 2016 -0400 |
tree | e176efeec7f9baa9e9d30429cab9f85ae838f7a1 | |
parent | 3dc147359e3dcdf0648f1e2c11f62cfae3160df0 [diff] |
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>