LockD: make lockd manager allocated per network namespace

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Stanislav Kinsbursky
2012-07-25 16:56:50 +04:00
committed by J. Bruce Fields
parent 66547b0251
commit 08d44a35a9
2 changed files with 12 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __LOCKD_NETNS_H__
#define __LOCKD_NETNS_H__
#include <linux/fs.h>
#include <net/netns/generic.h>
struct lockd_net {
@@ -9,6 +10,7 @@ struct lockd_net {
unsigned long nrhosts;
struct delayed_work grace_period_end;
struct lock_manager lockd_manager;
};
extern int lockd_net_id;