diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-12-04 20:13:46 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-01-15 05:06:30 +0100 |
commit | 801b564309bafea3cfd71f9c535d88f4d58d2d34 (patch) | |
tree | 92e798c6a5936a1bde2f9139e5ee1a429a22bc81 /fs/nfs | |
parent | nfs: Referrals should use the same proto setting as their parent (diff) | |
download | linux-801b564309bafea3cfd71f9c535d88f4d58d2d34.tar.xz linux-801b564309bafea3cfd71f9c535d88f4d58d2d34.zip |
nfs: Update server port after referral or migration
After traversing a referral or recovering from a migration event,
ensure that the server port reported in /proc/mounts is updated
to the correct port setting for the new submount.
Reported-by: Helen Chao <helen.chao@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 507f1f534b16..04612c24d394 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -861,6 +861,7 @@ static int nfs4_set_client(struct nfs_server *server, set_bit(NFS_CS_MIGRATION, &cl_init.init_flags); if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) set_bit(NFS_CS_TSM_POSSIBLE, &cl_init.init_flags); + server->port = rpc_get_port(addr); /* Allocate or find a client reference we can use */ clp = nfs_get_client(&cl_init); |