NFSD: Capture every CB state transition
authorChuck Lever <chuck.lever@oracle.com>
Fri, 14 May 2021 19:56:31 +0000 (15:56 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 18 May 2021 17:44:03 +0000 (13:44 -0400)
commit8476c69a7fa0f1f9705ec0caa4e97c08b5045779
treee7d9740e8039c76a5dabffdca01f33917d025499
parent1736aec82a15cb5d4b3bbe0b2fbae0ede66b1a1a
NFSD: Capture every CB state transition

We were missing one.

As a clean-up, add a helper that sets the new CB state and fires
a tracepoint. The tracepoint fires only when the state changes, to
help reduce trace log noise.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c