diff options
author | Andy Adamson <andros@netapp.com> | 2011-02-28 20:34:17 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-11 15:38:42 -0500 |
commit | d83217c13531fd59730d77b5c2284e90e56c0a50 (patch) | |
tree | e347037afc91fdb81e0e2fcf7225d30462fb90af /fs/nfs/nfs4_fs.h | |
parent | 64419a9b20938d9070fdd8c58c2fa23c911915f8 (diff) |
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>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index d4cfacc40003..7058a9f75e7f 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -266,6 +266,12 @@ is_ds_only_client(struct nfs_client *clp) | |||
266 | return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) == | 266 | return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) == |
267 | EXCHGID4_FLAG_USE_PNFS_DS; | 267 | EXCHGID4_FLAG_USE_PNFS_DS; |
268 | } | 268 | } |
269 | |||
270 | static inline bool | ||
271 | is_ds_client(struct nfs_client *clp) | ||
272 | { | ||
273 | return clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_DS; | ||
274 | } | ||
269 | #else /* CONFIG_NFS_v4_1 */ | 275 | #else /* CONFIG_NFS_v4_1 */ |
270 | static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server) | 276 | static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server) |
271 | { | 277 | { |
@@ -289,6 +295,12 @@ is_ds_only_client(struct nfs_client *clp) | |||
289 | { | 295 | { |
290 | return false; | 296 | return false; |
291 | } | 297 | } |
298 | |||
299 | static inline bool | ||
300 | is_ds_client(struct nfs_client *clp) | ||
301 | { | ||
302 | return false; | ||
303 | } | ||
292 | #endif /* CONFIG_NFS_V4_1 */ | 304 | #endif /* CONFIG_NFS_V4_1 */ |
293 | 305 | ||
294 | extern const struct nfs4_minor_version_ops *nfs_v4_minor_ops[]; | 306 | extern const struct nfs4_minor_version_ops *nfs_v4_minor_ops[]; |