summaryrefslogtreecommitdiff
path: root/fs/afs/main.c
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
commit59fa1c4a9f528c2a1556f4b2cd4e055b560c1c0a (patch)
treeca7a896cd83bccf789a1d29791e22d144768ac5e /fs/afs/main.c
parente3b2ffe0f0e1471854dc53bb69ff452e65cc88f2 (diff)
downloadlinux-59fa1c4a9f528c2a1556f4b2cd4e055b560c1c0a.tar.xz
afs: Fix server reaping
Fix server reaping and make sure it's all done before we start trying to purge cells, given that servers currently pin cells. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/main.c')
-rw-r--r--fs/afs/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/afs/main.c b/fs/afs/main.c
index 6bd2f3a426de..38e15b1f0eec 100644
--- a/fs/afs/main.c
+++ b/fs/afs/main.c
@@ -62,7 +62,8 @@ static int __net_init afs_net_init(struct afs_net *net)
rwlock_init(&net->servers_lock);
INIT_LIST_HEAD(&net->server_graveyard);
spin_lock_init(&net->server_graveyard_lock);
- INIT_DELAYED_WORK(&net->server_reaper, afs_reap_server);
+ INIT_WORK(&net->server_reaper, afs_reap_server);
+ timer_setup(&net->server_timer, afs_server_timer, 0);
/* Register the /proc stuff */
ret = afs_proc_init(net);