浏览代码

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>
David Howells 7 年之前
父节点
当前提交
e3b2ffe0f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/afs/main.c

+ 1 - 1
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);
 }