NFSD: Trace boot verifier resets
authorChuck Lever <chuck.lever@oracle.com>
Tue, 28 Dec 2021 19:27:56 +0000 (14:27 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 8 Jan 2022 19:42:03 +0000 (14:42 -0500)
commit75acacb6583df0b9328dc701d8eeea05af49b8b5
tree05cde8e1bedfc644b0592465b2c201dc52ac4ba1
parent3988a57885eeac05ef89f0ab4d7e47b52fbcf630
NFSD: Trace boot verifier resets

According to commit bbf2f098838a ("nfsd: Reset the boot verifier on
all write I/O errors"), the Linux NFS server forces all clients to
resend pending unstable writes if any server-side write or commit
operation encounters an error (say, ENOSPC). This is a rare and
quite exceptional event that could require administrative recovery
action, so it should be made trace-able. Example trace event:

nfsd-938   [002]  7174.945558: nfsd_writeverf_reset: boot_time=        61cc920d xid=0xdcd62036 error=-28 new verifier=0x08aecc6142515904

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/trace.h
fs/nfsd/vfs.c