LockD: mark host per network namespace on garbage collect
This is required for per-network NLM shutdown and cleanup. This patch passes init_net for a while. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Этот коммит содержится в:

коммит произвёл
J. Bruce Fields

родитель
99dbb8fe09
Коммит
b26411f85d
@@ -628,13 +628,14 @@ nlm_gc_hosts(void)
|
||||
struct hlist_head *chain;
|
||||
struct hlist_node *pos, *next;
|
||||
struct nlm_host *host;
|
||||
struct net *net = &init_net;
|
||||
|
||||
dprintk("lockd: host garbage collection\n");
|
||||
for_each_host(host, pos, chain, nlm_server_hosts)
|
||||
host->h_inuse = 0;
|
||||
|
||||
/* Mark all hosts that hold locks, blocks or shares */
|
||||
nlmsvc_mark_resources();
|
||||
nlmsvc_mark_resources(net);
|
||||
|
||||
for_each_host_safe(host, pos, next, chain, nlm_server_hosts) {
|
||||
if (atomic_read(&host->h_count) || host->h_inuse
|
||||
|
Ссылка в новой задаче
Block a user