]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsclient: Fix ReadDS/WriteDS/CommitDS nfsstats RPC counts for a NFSv3 DS
authorRick Macklem <rmacklem@FreeBSD.org>
Tue, 2 Mar 2021 22:18:23 +0000 (14:18 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 15 Mar 2021 19:38:49 +0000 (12:38 -0700)
commit3a0ffc48b7391ae07bc5f679e34c3facdad5cf8b
tree9c035af3d551b02840cd17a2ffdce133371658e2
parent5d1da3a15b8d62839194dbf02c24b794b43c1fc0
nfsclient: Fix ReadDS/WriteDS/CommitDS nfsstats RPC counts for a NFSv3 DS

During a recent virtual NFSv4 testing event, a bug in the FreeBSD client
was detected when doing I/O DS operations on a Flexible File Layout pNFS
server.  For an NFSv3 DS, the Read/Write/Commit nfsstats were incremented
instead of the ReadDS/WriteDS/CommitDS counts.
This patch fixes this.

Only the RPC counts reported by nfsstat(1) were affected by this bug,
the I/O operations were performed correctly.

(cherry picked from commit c04199affeacbd9e9dda3aaf5ca0b1b180031e78)
sys/fs/nfs/nfsport.h
sys/fs/nfsclient/nfs_clrpcops.c