summaryrefslogtreecommitdiff
path: root/fs/afs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-11-02 18:27:45 +0300
committerDavid Howells <dhowells@redhat.com>2017-11-13 18:38:16 +0300
commite3b2ffe0f0e1471854dc53bb69ff452e65cc88f2 (patch)
tree1b0ca949be15a37db9f5be7fffe3dddb389d0faf /fs/afs
parentf044c8847bb61eff5e1e95b6f6bb950e7f4a73a4 (diff)
downloadlinux-e3b2ffe0f0e1471854dc53bb69ff452e65cc88f2.tar.xz
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 <dhowells@redhat.com>
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/main.c2
1 files changed, 1 insertions, 1 deletions
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);
}