]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r320322
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 14 Jul 2017 20:47:41 +0000 (20:47 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 14 Jul 2017 20:47:41 +0000 (20:47 +0000)
commit2929347bebe2ac114b608dbe6299da3f7adcc17c
treeedd2959b26b1770b732d5b2705d386ebc30844cc
parente754f74ed01ccc515d32e811a959ca896fd1abd7
MFC: r320322
Add two new compound RPCs to the NFSv4.1/pNFS client.

When the NFSv4.1 client is doing pNFS, it needs to get an Open and
a Layout for every file it will be doing I/O on. The current code
does two separate RPCs to get these. This patch adds two new compounds
that do the both the Open and LayoutGet in the same RPC, reducing the
RPC count.
It also factors out the code that sets up and parses the LayoutGet operation
into separate functions, so that the code doesn't get duplicated for
these new RPCs.
This patch is fairly large, but should only affect the NFSv4.1 client
when the "pnfs" option is specified.
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsport.h
sys/fs/nfs/nfsproto.h
sys/fs/nfsclient/nfs_clcomsubs.c
sys/fs/nfsclient/nfs_clrpcops.c