mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
LockD: make nlm hosts network namespace aware
This object depends on RPC client, and thus on network namespace. So let's make it's allocation and lookup in network namespace context. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
bb2224df5f
commit
66697bfd6a
5 changed files with 21 additions and 4 deletions
|
@ -42,6 +42,7 @@ struct nlmclnt_initdata {
|
|||
unsigned short protocol;
|
||||
u32 nfs_version;
|
||||
int noresvport;
|
||||
struct net *net;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -67,6 +67,7 @@ struct nlm_host {
|
|||
struct list_head h_reclaim; /* Locks in RECLAIM state */
|
||||
struct nsm_handle *h_nsmhandle; /* NSM status handle */
|
||||
char *h_addrbuf; /* address eyecatcher */
|
||||
struct net *net; /* host net */
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -222,7 +223,8 @@ struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap,
|
|||
const unsigned short protocol,
|
||||
const u32 version,
|
||||
const char *hostname,
|
||||
int noresvport);
|
||||
int noresvport,
|
||||
struct net *net);
|
||||
void nlmclnt_release_host(struct nlm_host *);
|
||||
struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp,
|
||||
const char *hostname,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue