diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-07-02 15:51:48 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-07-02 15:51:48 +0200 |
commit | 78c2141b654375079e3737f06f19cabfc0fcecd7 (patch) | |
tree | 5068a6c2904d93b61b37243ea39b728fe621196e /fs/afs/main.c | |
parent | bb42b3d39781d7fcd3be7f9f9bf11b6661b5fdf1 (diff) | |
parent | e1ad1ac2deb8f90af9f12ff316989dd5675dec11 (diff) | |
download | linux-78c2141b654375079e3737f06f19cabfc0fcecd7.tar.bz2 |
Merge branch 'perf/vlbr'
Diffstat (limited to 'fs/afs/main.c')
-rw-r--r-- | fs/afs/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/afs/main.c b/fs/afs/main.c index 9c79c91e8005..31b472f7c734 100644 --- a/fs/afs/main.c +++ b/fs/afs/main.c @@ -100,6 +100,7 @@ static int __net_init afs_net_init(struct net *net_ns) timer_setup(&net->fs_timer, afs_servers_timer, 0); INIT_WORK(&net->fs_prober, afs_fs_probe_dispatcher); timer_setup(&net->fs_probe_timer, afs_fs_probe_timer, 0); + atomic_set(&net->servers_outstanding, 1); ret = -ENOMEM; sysnames = kzalloc(sizeof(*sysnames), GFP_KERNEL); @@ -130,6 +131,7 @@ static int __net_init afs_net_init(struct net *net_ns) error_open_socket: net->live = false; + afs_fs_probe_cleanup(net); afs_cell_purge(net); afs_purge_servers(net); error_cell_init: @@ -150,6 +152,7 @@ static void __net_exit afs_net_exit(struct net *net_ns) struct afs_net *net = afs_net(net_ns); net->live = false; + afs_fs_probe_cleanup(net); afs_cell_purge(net); afs_purge_servers(net); afs_close_socket(net); |