Home
last modified time | relevance | path

Searched refs:clnt (Results 1 – 21 of 21) sorted by relevance

/fs/9p/
Dv9fs.c343 v9ses->clnt = p9_client_create(dev_name, data); in v9fs_session_init()
344 if (IS_ERR(v9ses->clnt)) { in v9fs_session_init()
345 rc = PTR_ERR(v9ses->clnt); in v9fs_session_init()
352 if (p9_is_proto_dotl(v9ses->clnt)) { in v9fs_session_init()
355 } else if (p9_is_proto_dotu(v9ses->clnt)) { in v9fs_session_init()
363 v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; in v9fs_session_init()
392 fid = p9_client_attach(v9ses->clnt, NULL, v9ses->uname, INVALID_UID, in v9fs_session_init()
416 p9_client_destroy(v9ses->clnt); in v9fs_session_init()
433 if (v9ses->clnt) { in v9fs_session_close()
434 p9_client_destroy(v9ses->clnt); in v9fs_session_close()
[all …]
Dvfs_dir.c124 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
149 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir()
187 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl()
206 err = p9dirent_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir_dotl()
Dv9fs.h115 struct p9_client *clnt; /* 9p client */ member
Dvfs_file.c188 flock.client_id = fid->clnt->name; in v9fs_file_do_lock()
268 glock.client_id = fid->clnt->name; in v9fs_file_getlock()
Dfid.c157 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid()
/fs/lockd/
Dmon.c93 struct rpc_clnt *clnt; in nsm_mon_unmon() local
109 clnt = nsm_create(host->net, host->nodename); in nsm_mon_unmon()
110 if (IS_ERR(clnt)) { in nsm_mon_unmon()
112 "status=%ld, net=%p\n", PTR_ERR(clnt), host->net); in nsm_mon_unmon()
113 return PTR_ERR(clnt); in nsm_mon_unmon()
116 msg.rpc_proc = &clnt->cl_procinfo[proc]; in nsm_mon_unmon()
117 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); in nsm_mon_unmon()
121 rpc_force_rebind(clnt); in nsm_mon_unmon()
122 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); in nsm_mon_unmon()
130 rpc_shutdown_client(clnt); in nsm_mon_unmon()
Dhost.c177 struct rpc_clnt *clnt; in nlm_destroy_host_locked() local
187 clnt = host->h_rpcclnt; in nlm_destroy_host_locked()
188 if (clnt != NULL) in nlm_destroy_host_locked()
189 rpc_shutdown_client(clnt); in nlm_destroy_host_locked()
421 struct rpc_clnt *clnt; in nlm_bind_host() local
432 if ((clnt = host->h_rpcclnt) != NULL) { in nlm_bind_host()
434 rpc_force_rebind(clnt); in nlm_bind_host()
473 clnt = rpc_create(&args); in nlm_bind_host()
474 if (!IS_ERR(clnt)) in nlm_bind_host()
475 host->h_rpcclnt = clnt; in nlm_bind_host()
[all …]
Dclntproc.c252 struct rpc_clnt *clnt; in nlmclnt_call() local
270 if ((clnt = nlm_bind_host(host)) == NULL) in nlmclnt_call()
272 msg.rpc_proc = &clnt->cl_procinfo[proc]; in nlmclnt_call()
275 if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { in nlmclnt_call()
330 struct rpc_clnt *clnt; in __nlm_async_call() local
342 clnt = nlm_bind_host(host); in __nlm_async_call()
343 if (clnt == NULL) in __nlm_async_call()
345 msg->rpc_proc = &clnt->cl_procinfo[proc]; in __nlm_async_call()
346 task_setup_data.rpc_client = clnt; in __nlm_async_call()
/fs/nfs/
Dmount_clnt.c255 struct rpc_clnt *clnt; in nfs_umount() local
264 clnt = rpc_create(&args); in nfs_umount()
265 if (IS_ERR(clnt)) in nfs_umount()
272 msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC3_UMNT]; in nfs_umount()
274 msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC_UMNT]; in nfs_umount()
276 status = rpc_call_sync(clnt, &msg, 0); in nfs_umount()
277 rpc_shutdown_client(clnt); in nfs_umount()
286 PTR_ERR(clnt)); in nfs_umount()
Dnfs4namespace.c153 static struct rpc_clnt *nfs_find_best_sec(struct rpc_clnt *clnt, in nfs_find_best_sec() argument
177 new = rpc_clone_client_set_auth(clnt, pflavor); in nfs_find_best_sec()
210 nfs4_negotiate_security(struct rpc_clnt *clnt, struct inode *inode, in nfs4_negotiate_security() argument
230 new = nfs_find_best_sec(clnt, NFS_SERVER(inode), flavors); in nfs4_negotiate_security()
Dnfs4state.c2105 struct rpc_clnt *clnt; in nfs4_discover_server_trunking() local
2111 clnt = clp->cl_rpcclient; in nfs4_discover_server_trunking()
2127 if (clnt->cl_softrtry) in nfs4_discover_server_trunking()
2141 if (clnt->cl_auth->au_flavor == RPC_AUTH_UNIX) in nfs4_discover_server_trunking()
2146 if (clnt->cl_auth->au_flavor == RPC_AUTH_UNIX) { in nfs4_discover_server_trunking()
2150 clnt = rpc_clone_client_set_auth(clnt, RPC_AUTH_UNIX); in nfs4_discover_server_trunking()
2151 if (IS_ERR(clnt)) { in nfs4_discover_server_trunking()
2152 status = PTR_ERR(clnt); in nfs4_discover_server_trunking()
2159 clnt = xchg(&clp->cl_rpcclient, clnt); in nfs4_discover_server_trunking()
2160 rpc_shutdown_client(clnt); in nfs4_discover_server_trunking()
[all …]
Dfile.c498 struct rpc_clnt *clnt = NFS_CLIENT(file->f_mapping->host); in nfs_swap_activate() local
502 return rpc_clnt_swap_activate(clnt); in nfs_swap_activate()
507 struct rpc_clnt *clnt = NFS_CLIENT(file->f_mapping->host); in nfs_swap_deactivate() local
509 rpc_clnt_swap_deactivate(clnt); in nfs_swap_deactivate()
Dclient.c478 struct rpc_clnt *clnt = NULL; in nfs_create_rpc_client() local
504 clnt = rpc_create(&args); in nfs_create_rpc_client()
505 if (IS_ERR(clnt)) { in nfs_create_rpc_client()
507 __func__, PTR_ERR(clnt)); in nfs_create_rpc_client()
508 return PTR_ERR(clnt); in nfs_create_rpc_client()
511 clp->cl_rpcclient = clnt; in nfs_create_rpc_client()
Dnfs4client.c1273 struct rpc_clnt *clnt = server->client; in nfs4_update_server() local
1291 error = rpc_switch_client_transport(clnt, &xargs, clnt->cl_timeout); in nfs4_update_server()
1298 error = rpc_localaddr(clnt, localaddr, sizeof(address)); in nfs4_update_server()
1315 clp->cl_proto, clnt->cl_timeout, in nfs4_update_server()
Dnfs4proc.c368 static int nfs4_delay(struct rpc_clnt *clnt, long *timeout) in nfs4_delay() argument
1037 static int nfs4_call_sync_sequence(struct rpc_clnt *clnt, in nfs4_call_sync_sequence() argument
1052 .rpc_client = clnt, in nfs4_call_sync_sequence()
1068 int nfs4_call_sync(struct rpc_clnt *clnt, in nfs4_call_sync() argument
1076 return nfs4_call_sync_sequence(clnt, server, msg, args, res); in nfs4_call_sync()
3733 static int _nfs4_proc_lookup(struct rpc_clnt *clnt, struct inode *dir, in _nfs4_proc_lookup() argument
3761 status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, &res.seq_res, 0); in _nfs4_proc_lookup()
3774 static int nfs4_proc_lookup_common(struct rpc_clnt **clnt, struct inode *dir, in nfs4_proc_lookup_common() argument
3779 struct rpc_clnt *client = *clnt; in nfs4_proc_lookup_common()
3795 if (client != *clnt) in nfs4_proc_lookup_common()
[all …]
Dnfs3proc.c31 nfs3_rpc_wrapper(struct rpc_clnt *clnt, struct rpc_message *msg, int flags) in nfs3_rpc_wrapper() argument
35 res = rpc_call_sync(clnt, msg, flags); in nfs3_rpc_wrapper()
44 #define rpc_call_sync(clnt, msg, flags) nfs3_rpc_wrapper(clnt, msg, flags) argument
Dinternal.h252 int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
475 extern int nfs_initiate_commit(struct rpc_clnt *clnt,
Dpagelist.c585 int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr, in nfs_initiate_pgio() argument
596 .rpc_client = clnt, in nfs_initiate_pgio()
Dwrite.c1584 int nfs_initiate_commit(struct rpc_clnt *clnt, struct nfs_commit_data *data, in nfs_initiate_commit() argument
1598 .rpc_client = clnt, in nfs_initiate_commit()
Dnfs4xdr.c1813 struct rpc_clnt *clnt = clp->cl_rpcclient; in encode_create_session() local
1825 p = reserve_space(xdr, 16 + 2*28 + 20 + clnt->cl_nodelen + 12); in encode_create_session()
1854 p = xdr_encode_array(p, clnt->cl_nodename, clnt->cl_nodelen); in encode_create_session()
/fs/nfsd/
Dnfs4callback.c1164 struct rpc_clnt *clnt; in nfsd4_run_cb_work() local
1176 clnt = clp->cl_cb_client; in nfsd4_run_cb_work()
1177 if (!clnt) { in nfsd4_run_cb_work()
1193 rpc_call_async(clnt, &cb->cb_msg, RPC_TASK_SOFT | RPC_TASK_SOFTCONN, in nfsd4_run_cb_work()