Skip to content

Commit 3120c17

Browse files
committed
afs: Fix handling of CB.ProbeUuid cache manager op
The AFS filesystem driver is handling the CB.ProbeUuid request incorrectly. The UUID presented in the request is that of the cache manager, not the fileserver, so afs_deliver_cb_probe_uuid() shouldn't be using that UUID to look up the server. Fix this by looking up the server by address instead. Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 4474635 commit 3120c17

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎fs/afs/cmservice.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ static int afs_deliver_cb_probe(struct afs_call *call)
464464
}
465465

466466
/*
467-
* allow the fileserver to quickly find out if the fileserver has been rebooted
467+
* Allow the fileserver to quickly find out if the cache manager has been
468+
* rebooted.
468469
*/
469470
static void SRXAFSCB_ProbeUuid(struct work_struct *work)
470471
{
@@ -536,7 +537,7 @@ static int afs_deliver_cb_probe_uuid(struct afs_call *call)
536537

537538
if (!afs_check_call_state(call, AFS_CALL_SV_REPLYING))
538539
return afs_io_error(call, afs_io_error_cm_reply);
539-
return afs_find_cm_server_by_uuid(call, call->request);
540+
return afs_find_cm_server_by_peer(call);
540541
}
541542

542543
/*

0 commit comments

Comments
 (0)