HomeFreeBSD

nfsclient: Fix ReadDS/WriteDS/CommitDS nfsstats RPC counts for a NFSv3 DS

Description

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.

MFC after: 2 weeks

(cherry picked from commit c04199affeacbd9e9dda3aaf5ca0b1b180031e78)

Details

Provenance
rmacklemAuthored on Mar 2 2021, 10:18 PM
Parents
rGf419fd9ad817: nfsclient: Fix the stripe unit size for a File Layout pNFS layout
Branches
Unknown
Tags
Unknown