summaryrefslogtreecommitdiff
path: root/fs/afs/cmservice.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-05-12 00:59:42 +0300
committerDavid Howells <dhowells@redhat.com>2018-05-14 17:15:18 +0300
commit3709a399c15e4273d9a94b123374f12e5664318c (patch)
tree811f6e966e3dae7af50359f9c890c40b19ed30b0 /fs/afs/cmservice.c
parent001ab5a67ee5d191c64aebf4b4ef8c7a0dcfd2bc (diff)
downloadlinux-3709a399c15e4273d9a94b123374f12e5664318c.tar.xz
afs: Add a tracepoint to record callbacks from unlisted servers
Add a tracepoint to record callbacks from servers for which we don't have a record. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/cmservice.c')
-rw-r--r--fs/afs/cmservice.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c
index bcd13397bd59..9f13375f49b8 100644
--- a/fs/afs/cmservice.c
+++ b/fs/afs/cmservice.c
@@ -287,8 +287,10 @@ static int afs_deliver_cb_callback(struct afs_call *call)
* vnodes to operate upon */
rxrpc_kernel_get_peer(call->net->socket, call->rxcall, &srx);
server = afs_find_server(call->net, &srx);
- if (!server)
+ if (!server) {
+ trace_afs_cm_no_server(call, &srx);
return -ENOTCONN;
+ }
call->cm_server = server;
return afs_queue_call_work(call);
@@ -329,8 +331,10 @@ static int afs_deliver_cb_init_call_back_state(struct afs_call *call)
/* we'll need the file server record as that tells us which set of
* vnodes to operate upon */
server = afs_find_server(call->net, &srx);
- if (!server)
+ if (!server) {
+ trace_afs_cm_no_server(call, &srx);
return -ENOTCONN;
+ }
call->cm_server = server;
return afs_queue_call_work(call);
@@ -400,8 +404,10 @@ static int afs_deliver_cb_init_call_back_state3(struct afs_call *call)
rcu_read_lock();
server = afs_find_server_by_uuid(call->net, call->request);
rcu_read_unlock();
- if (!server)
+ if (!server) {
+ trace_afs_cm_no_server_u(call, call->request);
return -ENOTCONN;
+ }
call->cm_server = server;
return afs_queue_call_work(call);