NFSv4.1: data server connection
Introduce a data server set_client and init session following the nfs4_set_client and nfs4_init_session convention. Once a new nfs_client is on the nfs_client_list, the nfs_client cl_cons_state serializes access to creating an nfs_client struct with matching properties. Use the new nfs_get_client() that initializes new clients. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
64419a9b20
commit
d83217c135
@@ -266,6 +266,12 @@ is_ds_only_client(struct nfs_client *clp)
|
||||
return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) ==
|
||||
EXCHGID4_FLAG_USE_PNFS_DS;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
is_ds_client(struct nfs_client *clp)
|
||||
{
|
||||
return clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_DS;
|
||||
}
|
||||
#else /* CONFIG_NFS_v4_1 */
|
||||
static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server)
|
||||
{
|
||||
@@ -289,6 +295,12 @@ is_ds_only_client(struct nfs_client *clp)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
is_ds_client(struct nfs_client *clp)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_NFS_V4_1 */
|
||||
|
||||
extern const struct nfs4_minor_version_ops *nfs_v4_minor_ops[];
|
||||
|
Reference in New Issue
Block a user