Skip to content

Commit

Permalink
afs: Close the rxrpc socket only after purging the servers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells committed Nov 13, 2017
1 parent f044c88 commit e3b2ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/afs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ static int __net_init afs_net_init(struct afs_net *net)
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);
}

Expand Down

0 comments on commit e3b2ffe

Please sign in to comment.