]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSv4.1 add network transport when session trunking is detected
authorOlga Kornievskaia <kolga@netapp.com>
Fri, 27 Aug 2021 18:37:19 +0000 (14:37 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 27 Aug 2021 20:37:41 +0000 (16:37 -0400)
commit2a7a451a9084877a0b9d335c77d57e4cda1e5882
treeea206b8ab2ffab311580e2bb92b6cff02d2c74b0
parentdc48e0abee245e2f0361bd8d4e3b00f70450fab2
NFSv4.1 add network transport when session trunking is detected

After trunking is discovered in nfs4_discover_server_trunking(),
add the transport to the old client structure if the allowed limit
of transports has not been reached.

An example: there exists a multi-homed server and client mounts
one server address and some volume and then doest another mount to
a different address of the same server and perhaps a different
volume. Previously, the client checks that this is a session
trunkable servers (same server), and removes the newly created
client structure along with its transport. Now, the client
adds the connection from the 2nd mount into the xprt switch of
the existing client (it leads to having 2 available connections).

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4client.c