Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e137ed5 authored by Vasily Averin's avatar Vasily Averin Committed by J. Bruce Fields
Browse files

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: default avatarVasily Averin <vvs@virtuozzo.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 2317dc55
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -621,9 +621,8 @@ nlm_shutdown_hosts_net(struct net *net)


	/* Then, perform a garbage collection pass */
	/* Then, perform a garbage collection pass */
	nlm_gc_hosts(net);
	nlm_gc_hosts(net);
	mutex_unlock(&nlm_host_mutex);

	nlm_complain_hosts(net);
	nlm_complain_hosts(net);
	mutex_unlock(&nlm_host_mutex);
}
}


/*
/*