Created attachment 182908 [details] add Open+LayoutGet RPCs This patch adds support for Open+LayoutGet RPCs to the NFSv4.1/pNFS client, reducing the RPC count by avoiding a separate RPC for LayoutGet.
A commit references this bug: Author: rmacklem Date: Sat Jun 24 20:01:22 UTC 2017 New revision: 320322 URL: https://svnweb.freebsd.org/changeset/base/320322 Log: 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. PR: 219550 MFC after: 2 weeks Changes: head/sys/fs/nfs/nfs_commonsubs.c head/sys/fs/nfs/nfsport.h head/sys/fs/nfs/nfsproto.h head/sys/fs/nfsclient/nfs_clcomsubs.c head/sys/fs/nfsclient/nfs_clrpcops.c
A commit references this bug: Author: rmacklem Date: Sat Jun 24 20:09:23 UTC 2017 New revision: 320323 URL: https://svnweb.freebsd.org/changeset/base/320323 Log: Add RPC count reporting for the two new RPCs added by r320322. This is a content change. PR: 219550 MFC after: 2 weeks Changes: head/usr.bin/nfsstat/nfsstat.c
Rick, can this PR be closed now or is there work still pending? Thanks
Patch has been committed and MFC'd.