]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Fix NFSv4.1/4.2 pnfs mounts using nconnect
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 5 Nov 2021 00:06:34 +0000 (17:06 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 5 Nov 2021 00:06:34 +0000 (17:06 -0700)
commit80e5955b085af20e65ef84066a164936413748e3
treefbd7ae12754a5577a461dc2d039257297f490b4f
parentdd31400c3c2aa941d057e78296c193959a6d9ed3
nfscl: Fix NFSv4.1/4.2 pnfs mounts using nconnect

When a mount with the "pnfs" and "nconnect" options specified
does an I/O operation, it erroneously uses a TCP connection
to the MDS when it is meant to be a DS operation and, as such,
needs to use a TCP connection to the DS.  This patch fixes this.

When the "pnfs" and "nconnect" options are specified for a
NFSv4.1/4.2 mount, there probably should be N connections
established to each DS for I/O RPCs.  This is a fair amount
of work and may be done in a future commit.

This problem was found during a recent IETF NFSv4 working
group testing event.

MFC after: 2 weeks
sys/fs/nfs/nfs_commonkrpc.c