From e3b2ffe0f0e1471854dc53bb69ff452e65cc88f2 Mon Sep 17 00:00:00 2001 From: David Howells Date: Thu, 2 Nov 2017 15:27:45 +0000 Subject: afs: Close the rxrpc socket only after purging the servers Close the rxrpc socket only after we've purged the server records (and also cell and volume records which might refer to servers) so that we can give up the callbacks on each server. Signed-off-by: David Howells --- fs/afs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/afs/main.c') diff --git a/fs/afs/main.c b/fs/afs/main.c index 87b1a9c8000d..6bd2f3a426de 100644 --- a/fs/afs/main.c +++ b/fs/afs/main.c @@ -96,10 +96,10 @@ error_proc: static void __net_exit afs_net_exit(struct afs_net *net) { net->live = false; - afs_close_socket(net); afs_purge_servers(net); afs_vlocation_purge(net); afs_cell_purge(net); + afs_close_socket(net); afs_proc_cleanup(net); } -- cgit v1.2.3