]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
afs: Close the rxrpc socket only after purging the servers
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:27:45 +0000 (15:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 13 Nov 2017 15:38:16 +0000 (15:38 +0000)
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 <dhowells@redhat.com>
fs/afs/main.c

index 87b1a9c8000d9644bc060fd4c6abbe8eb8287d3d..6bd2f3a426de3b80d3c76e9f82d56fb561e11a45 100644 (file)
@@ -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);
 }