]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFS4: Avoid migration loops
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 30 Aug 2016 13:20:32 +0000 (09:20 -0400)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 22 Mar 2018 23:33:20 +0000 (16:33 -0700)
commit751dac3f78be143b9fbca2cb114ee9d70d905422
treede91d69a688148d56757385b747c1707bcdbcd1c
parent78a3d3bd9f8a960a9c3224e0d7b348fb5f483ada
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>
Orabug: 27679350
(cherry picked from commit 52442f9b11b7e5d4a38d99143011831fd171f8d9)
Signed-off-by: Calum Mackay <calum.mackay@oracle.com>
Reviewed-by: Manjunath Patil <manjunath.b.patil@oracle.com>
fs/nfs/nfs4client.c