Skip to content

Commit

Permalink
nlm_shutdown_hosts_net() cleanup
Browse files Browse the repository at this point in the history
nlm_complain_hosts() walks through nlm_server_hosts hlist, which should
be protected by nlm_host_mutex.

Signed-off-by: Vasily Averin <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
vaverin authored and J. Bruce Fields committed Nov 27, 2017
1 parent 2317dc5 commit 9e137ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 9e137ed

Please sign in to comment.