diff options
author | David Howells <dhowells@redhat.com> | 2019-06-20 19:12:17 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-06-20 19:12:17 +0200 |
commit | 452181936931f0f08923aba5e04e1e9ef58c389f (patch) | |
tree | 9516d468bae57461e495be640fbc7af86521cfa8 /fs/afs/cmservice.c | |
parent | afs: Add some callback management tracepoints (diff) | |
download | linux-452181936931f0f08923aba5e04e1e9ef58c389f.tar.xz linux-452181936931f0f08923aba5e04e1e9ef58c389f.zip |
afs: Trace afs_server usage
Add a tracepoint (afs_server) to track the afs_server object usage count.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/cmservice.c')
-rw-r--r-- | fs/afs/cmservice.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c index 01437cfe5432..e114d6be0c2b 100644 --- a/fs/afs/cmservice.c +++ b/fs/afs/cmservice.c @@ -260,8 +260,11 @@ static void SRXAFSCB_CallBack(struct work_struct *work) * server holds up change visibility till it receives our reply so as * to maintain cache coherency. */ - if (call->server) + if (call->server) { + trace_afs_server(call->server, atomic_read(&call->server->usage), + afs_server_trace_callback); afs_break_callbacks(call->server, call->count, call->request); + } afs_send_empty_reply(call); afs_put_call(call); |