diff options
author | David Howells <dhowells@redhat.com> | 2023-10-26 19:13:13 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-12-24 16:22:55 +0100 |
commit | e38f299ececc6b63a47074cc922ce8bbd3350c58 (patch) | |
tree | ecc17b03534f8cf14931c7aefe68e439e88afca6 /fs/afs/vl_probe.c | |
parent | afs: Rename some fields (diff) | |
download | linux-e38f299ececc6b63a47074cc922ce8bbd3350c58.tar.xz linux-e38f299ececc6b63a47074cc922ce8bbd3350c58.zip |
afs: Use peer + service_id as call address
Use the rxrpc_peer plus the service ID as the call address instead of
passing in a sockaddr_srx down to rxrpc. The peer record is obtained by
using rxrpc_kernel_get_peer(). This avoids the need to repeatedly look up
the peer and allows rxrpc to hold on to resources for it.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Diffstat (limited to 'fs/afs/vl_probe.c')
-rw-r--r-- | fs/afs/vl_probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/vl_probe.c b/fs/afs/vl_probe.c index 138f5715619d..d9a99ba9fc78 100644 --- a/fs/afs/vl_probe.c +++ b/fs/afs/vl_probe.c @@ -107,12 +107,12 @@ responded: if (call->service_id == YFS_VL_SERVICE) { server->probe.flags |= AFS_VLSERVER_PROBE_IS_YFS; set_bit(AFS_VLSERVER_FL_IS_YFS, &server->flags); - addr->service_id = call->service_id; + server->service_id = call->service_id; } else { server->probe.flags |= AFS_VLSERVER_PROBE_NOT_YFS; if (!(server->probe.flags & AFS_VLSERVER_PROBE_IS_YFS)) { clear_bit(AFS_VLSERVER_FL_IS_YFS, &server->flags); - addr->service_id = call->service_id; + server->service_id = call->service_id; } } |