]> git.baikalelectronics.ru Git - kernel.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)
commitb6f5d6e990dc0b582cb072941387114500159d09
treeea206b8ab2ffab311580e2bb92b6cff02d2c74b0
parentff1e4f656df1b1bc6f47016ebe88828581fd3b2e
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