]> asedeno.scripts.mit.edu Git - linux.git/commit
afs: Add some callback management tracepoints
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Jun 2019 17:12:16 +0000 (18:12 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Jun 2019 17:12:16 +0000 (18:12 +0100)
commit051d25250b55c215a2254a0130d46fbd38bcbcc0
tree0e53a2801fb6f964d85e663435041c01943cb878
parentfa59f52f5b1412c373813e24e7cbe5ab44518ed8
afs: Add some callback management tracepoints

Add a couple of tracepoints to track callback management:

 (1) afs_cb_miss - Logs when we were unable to apply a callback, either due
     to the inode being discarded or due to a competing thread applying a
     callback first.

 (2) afs_cb_break - Logs when we attempted to clear the noted callback
     promise, either due to the server explicitly breaking the callback,
     the callback promise lapsing or a local event obsoleting it.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/callback.c
fs/afs/dir.c
fs/afs/inode.c
fs/afs/internal.h
include/trace/events/afs.h