diff options
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r-- | fs/nfs/nfs4client.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index 2548405da1f7..1339ede979af 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c | |||
@@ -42,7 +42,7 @@ static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) | |||
42 | } | 42 | } |
43 | 43 | ||
44 | #ifdef CONFIG_NFS_V4_1 | 44 | #ifdef CONFIG_NFS_V4_1 |
45 | /** | 45 | /* |
46 | * Per auth flavor data server rpc clients | 46 | * Per auth flavor data server rpc clients |
47 | */ | 47 | */ |
48 | struct nfs4_ds_server { | 48 | struct nfs4_ds_server { |
@@ -51,7 +51,9 @@ struct nfs4_ds_server { | |||
51 | }; | 51 | }; |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Common lookup case for DS I/O | 54 | * nfs4_find_ds_client - Common lookup case for DS I/O |
55 | * @ds_clp: pointer to the DS's nfs_client | ||
56 | * @flavor: rpc auth flavour to match | ||
55 | */ | 57 | */ |
56 | static struct nfs4_ds_server * | 58 | static struct nfs4_ds_server * |
57 | nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) | 59 | nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) |
@@ -118,9 +120,13 @@ nfs4_free_ds_server(struct nfs4_ds_server *dss) | |||
118 | } | 120 | } |
119 | 121 | ||
120 | /** | 122 | /** |
121 | * Find or create a DS rpc client with th MDS server rpc client auth flavor | 123 | * nfs4_find_or_create_ds_client - Find or create a DS rpc client |
122 | * in the nfs_client cl_ds_clients list. | 124 | * @ds_clp: pointer to the DS's nfs_client |
123 | */ | 125 | * @inode: pointer to the inode |
126 | * | ||
127 | * Find or create a DS rpc client with th MDS server rpc client auth flavor | ||
128 | * in the nfs_client cl_ds_clients list. | ||
129 | */ | ||
124 | struct rpc_clnt * | 130 | struct rpc_clnt * |
125 | nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) | 131 | nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) |
126 | { | 132 | { |
@@ -145,7 +151,6 @@ static void | |||
145 | nfs4_shutdown_ds_clients(struct nfs_client *clp) | 151 | nfs4_shutdown_ds_clients(struct nfs_client *clp) |
146 | { | 152 | { |
147 | struct nfs4_ds_server *dss; | 153 | struct nfs4_ds_server *dss; |
148 | LIST_HEAD(shutdown_list); | ||
149 | 154 | ||
150 | while (!list_empty(&clp->cl_ds_clients)) { | 155 | while (!list_empty(&clp->cl_ds_clients)) { |
151 | dss = list_entry(clp->cl_ds_clients.next, | 156 | dss = list_entry(clp->cl_ds_clients.next, |
@@ -284,7 +289,7 @@ static int nfs4_init_callback(struct nfs_client *clp) | |||
284 | 289 | ||
285 | /** | 290 | /** |
286 | * nfs40_init_client - nfs_client initialization tasks for NFSv4.0 | 291 | * nfs40_init_client - nfs_client initialization tasks for NFSv4.0 |
287 | * @clp - nfs_client to initialize | 292 | * @clp: nfs_client to initialize |
288 | * | 293 | * |
289 | * Returns zero on success, or a negative errno if some error occurred. | 294 | * Returns zero on success, or a negative errno if some error occurred. |
290 | */ | 295 | */ |
@@ -312,7 +317,7 @@ int nfs40_init_client(struct nfs_client *clp) | |||
312 | 317 | ||
313 | /** | 318 | /** |
314 | * nfs41_init_client - nfs_client initialization tasks for NFSv4.1+ | 319 | * nfs41_init_client - nfs_client initialization tasks for NFSv4.1+ |
315 | * @clp - nfs_client to initialize | 320 | * @clp: nfs_client to initialize |
316 | * | 321 | * |
317 | * Returns zero on success, or a negative errno if some error occurred. | 322 | * Returns zero on success, or a negative errno if some error occurred. |
318 | */ | 323 | */ |
@@ -360,9 +365,7 @@ static int nfs4_init_client_minor_version(struct nfs_client *clp) | |||
360 | * nfs4_init_client - Initialise an NFS4 client record | 365 | * nfs4_init_client - Initialise an NFS4 client record |
361 | * | 366 | * |
362 | * @clp: nfs_client to initialise | 367 | * @clp: nfs_client to initialise |
363 | * @timeparms: timeout parameters for underlying RPC transport | 368 | * @cl_init: pointer to nfs_client_initdata |
364 | * @ip_addr: callback IP address in presentation format | ||
365 | * @authflavor: authentication flavor for underlying RPC transport | ||
366 | * | 369 | * |
367 | * Returns pointer to an NFS client, or an ERR_PTR value. | 370 | * Returns pointer to an NFS client, or an ERR_PTR value. |
368 | */ | 371 | */ |
@@ -649,13 +652,13 @@ nfs4_check_server_scope(struct nfs41_server_scope *s1, | |||
649 | 652 | ||
650 | /** | 653 | /** |
651 | * nfs4_detect_session_trunking - Checks for session trunking. | 654 | * nfs4_detect_session_trunking - Checks for session trunking. |
652 | * | ||
653 | * Called after a successful EXCHANGE_ID on a multi-addr connection. | ||
654 | * Upon success, add the transport. | ||
655 | * | ||
656 | * @clp: original mount nfs_client | 655 | * @clp: original mount nfs_client |
657 | * @res: result structure from an exchange_id using the original mount | 656 | * @res: result structure from an exchange_id using the original mount |
658 | * nfs_client with a new multi_addr transport | 657 | * nfs_client with a new multi_addr transport |
658 | * @xprt: pointer to the transport to add. | ||
659 | * | ||
660 | * Called after a successful EXCHANGE_ID on a multi-addr connection. | ||
661 | * Upon success, add the transport. | ||
659 | * | 662 | * |
660 | * Returns zero on success, otherwise -EINVAL | 663 | * Returns zero on success, otherwise -EINVAL |
661 | * | 664 | * |