HomeFreeBSD

nfscl: Fix must_commit handling for mirrored pNFS mounts

Description

nfscl: Fix must_commit handling for mirrored pNFS mounts

For pNFS mounts to mirrored Flexible File layout pNFS servers,
the "must_commit" component in the nfsclwritedsdorpc
structure must be checked and the "must_commit" argument passed
into nfscl_doiods() must be updated. Technically, only writes to
the DS with a writeverf change must be redone, but since this
occurrence will be rare, the must_commit argument to nfscl_doiosd()
is set to 1, so all writes to all DSs will be redone.

This bug would affect few, since use of mirrored pNFS servers
is rare and "writeverf" rarely changes. Normally "writeverf"
only changes when a NFS server reboots.

(cherry picked from commit 24947b701d07634434b3208b0a0c970235f9d16e)

Details

Provenance
rmacklemAuthored on Dec 12 2021, 11:40 PM
Parents
rGbf2df417e3a4: libpmc: Update some x86 event definitions.
Branches
Unknown
Tags
Unknown