From: Vasily Averin Date: Mon, 30 Oct 2017 13:47:58 +0000 (+0300) Subject: nlm_shutdown_hosts_net() cleanup X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9e137ed5abcb21c0efffb1b6a7c48f2d21980303;p=linux.git nlm_shutdown_hosts_net() cleanup nlm_complain_hosts() walks through nlm_server_hosts hlist, which should be protected by nlm_host_mutex. Signed-off-by: Vasily Averin Reviewed-by: Jeff Layton Signed-off-by: J. Bruce Fields --- diff --git a/fs/lockd/host.c b/fs/lockd/host.c index f90f6d5082ef5..826a89184f90f 100644 --- a/fs/lockd/host.c +++ b/fs/lockd/host.c @@ -621,9 +621,8 @@ nlm_shutdown_hosts_net(struct net *net) /* Then, perform a garbage collection pass */ nlm_gc_hosts(net); - mutex_unlock(&nlm_host_mutex); - nlm_complain_hosts(net); + mutex_unlock(&nlm_host_mutex); } /*