linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nlm_shutdown_hosts_net() cleanup
@ 2017-10-30 13:47 Vasily Averin
  2017-10-30 14:49 ` J. Bruce Fields
  0 siblings, 1 reply; 4+ messages in thread
From: Vasily Averin @ 2017-10-30 13:47 UTC (permalink / raw)
  To: linux-nfs, linux-kernel; +Cc: J. Bruce Fields, Jeff Layton

nlm_complain_hosts() walk through nlm_server_hosts hlist that should be
protected by nlm_host_mutex.

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 fs/lockd/host.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index d716c99..089c1d7 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -617,9 +617,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);
 }
 
 /*
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-30 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-30 13:47 [PATCH] nlm_shutdown_hosts_net() cleanup Vasily Averin
2017-10-30 14:49 ` J. Bruce Fields
2017-10-30 14:58   ` Vasily Averin
2017-10-30 15:49   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).