Home
last modified time | relevance | path

Searched refs:clp (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/linux/fs/nfs/
H A Dnfs4state.c187 if (clp->cl_state) in nfs40_discover_server_trunking()
299 if (clp->cl_slot_tbl) in nfs4_begin_drain_session()
369 if (clp != *result) in nfs41_discover_server_trunking()
386 nfs_put_client(clp); in nfs41_discover_server_trunking()
1261 if (!clp) in nfs4_schedule_lease_recovery()
1266 clp->cl_hostname); in nfs4_schedule_lease_recovery()
1316 __func__, clp->cl_clientid, clp->cl_hostname); in nfs4_schedule_lease_moved_recovery()
2206 clp->cl_mig_gen++; in nfs4_handle_migration()
2252 clp->cl_mig_gen++; in nfs4_handle_lease_moved()
2386 struct nfs_client *clp = session->clp; in nfs4_schedule_session_recovery() local
[all …]
H A Dnfs4renewd.c58 struct nfs_client *clp = in nfs4_renew_state() local
71 lease = clp->cl_lease_time; in nfs4_renew_state()
72 last = clp->cl_last_renewal; in nfs4_renew_state()
77 if (nfs_delegations_present(clp)) in nfs4_renew_state()
106 nfs4_schedule_state_renewal(clp); in nfs4_renew_state()
118 spin_lock(&clp->cl_lock); in nfs4_schedule_state_renewal()
119 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal()
127 spin_unlock(&clp->cl_lock); in nfs4_schedule_state_renewal()
145 spin_lock(&clp->cl_lock); in nfs4_set_lease_period()
146 clp->cl_lease_time = lease; in nfs4_set_lease_period()
[all …]
H A Dclient.c153 if ((clp = kzalloc(sizeof(*clp), GFP_KERNEL)) == NULL) in nfs_alloc_client()
161 clp->rpc_ops = clp->cl_nfs_mod->rpc_ops; in nfs_alloc_client()
187 return clp; in nfs_alloc_client()
192 kfree(clp); in nfs_alloc_client()
248 kfree(clp); in nfs_free_client()
259 if (!clp) in nfs_put_client()
271 clp->rpc_ops->free_client(clp); in nfs_put_client()
334 return clp; in nfs_match_client()
396 return clp; in nfs_found_client()
419 if (clp) { in nfs_get_client()
[all …]
H A Dnfs4client.c206 if (IS_ERR(clp)) in nfs4_alloc_client()
207 return clp; in nfs4_alloc_client()
260 strscpy(clp->cl_ipaddr, ip_addr, sizeof(clp->cl_ipaddr)); in nfs4_alloc_client()
269 return clp; in nfs4_alloc_client()
289 clp->cl_mvops->shutdown_client(clp); in nfs4_shutdown_client()
403 ret = clp->cl_mvops->init_client(clp); in nfs4_init_client_minor_version()
454 return clp; in nfs4_init_client()
819 if (clp) in nfs4_find_client_ident()
822 return clp; in nfs4_find_client_ident()
877 return clp; in nfs4_find_client_sessionid()
[all …]
H A Dcallback_proc.c342 if (cps->clp) in nfs4_callback_layoutrecall()
355 do_callback_layoutrecall(clp, &args); in pnfs_recall_all_layouts()
366 if (!cps->clp) { in nfs4_callback_devicenotify()
463 session = clp->cl_session; in referring_call_exists()
495 struct nfs_client *clp; in nfs4_callback_sequence() local
501 if (clp == NULL) in nfs4_callback_sequence()
571 cps->clp = clp; /* put in nfs4_callback_compound */ in nfs4_callback_sequence()
620 pnfs_recall_all_layouts(cps->clp); in nfs4_callback_recallany()
659 nfs41_notify_server(cps->clp); in nfs4_callback_recallslot()
709 spin_lock(&cps->clp->cl_lock); in nfs4_callback_offload()
[all …]
H A Dnfs4session.h75 struct nfs_client *clp; member
111 return clp->cl_session; in nfs4_get_session()
123 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
125 extern int nfs4_init_session(struct nfs_client *clp);
131 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() argument
133 if (clp->cl_session) in nfs4_has_session()
138 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session() argument
140 if (nfs4_has_session(clp)) in nfs4_has_persistent_session()
141 return (clp->cl_session->flags & SESSION4_PERSIST); in nfs4_has_persistent_session()
163 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session() argument
[all …]
H A Ddelegation.h51 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
53 void nfs_expire_all_delegations(struct nfs_client *clp);
54 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
55 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
56 int nfs_client_return_marked_delegations(struct nfs_client *clp);
57 int nfs_delegations_present(struct nfs_client *clp);
61 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
62 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
64 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp);
65 void nfs_test_expired_all_delegations(struct nfs_client *clp);
[all …]
H A Ddelegation.c339 struct nfs_client *clp) in nfs_detach_delegation_locked() argument
343 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked()
366 spin_lock(&clp->cl_lock); in nfs_detach_delegation()
368 spin_unlock(&clp->cl_lock); in nfs_detach_delegation()
453 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation()
476 __func__, clp->cl_hostname); in nfs_inode_set_delegation()
515 spin_unlock(&clp->cl_lock); in nfs_inode_set_delegation()
859 nfs4_schedule_state_manager(clp); in nfs_delegation_run_state_manager()
883 if (clp == NULL) in nfs_server_return_all_delegations()
892 nfs4_wait_clnt_recover(clp); in nfs_server_return_all_delegations()
[all …]
H A Dnfs4_fs.h255 struct nfs_client *clp; member
302 extern int nfs4_destroy_clientid(struct nfs_client *clp);
352 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument
359 is_ds_client(struct nfs_client *clp) in is_ds_client() argument
381 if (test_bit(sp4_mode, &clp->cl_sp4_flags)) { in _nfs4_state_protect()
384 flavor = clp->cl_rpcclient->cl_auth->au_flavor; in _nfs4_state_protect()
387 *clntp = clp->cl_rpcclient; in _nfs4_state_protect()
404 _nfs4_state_protect(clp, sp4_mode, clntp, msg); in nfs4_state_protect()
422 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument
428 is_ds_client(struct nfs_client *clp) in is_ds_client() argument
[all …]
H A Dnfs4session.c571 session->clp = clp; in nfs4_alloc_session()
586 cred = nfs4_get_clid_cred(session->clp); in nfs4_destroy_session()
616 if (clp->cl_cons_state < NFS_CS_READY) in nfs41_check_session_ready()
624 if (!nfs4_has_session(clp)) in nfs4_init_session()
628 return nfs41_check_session_ready(clp); in nfs4_init_session()
636 spin_lock(&clp->cl_lock); in nfs4_init_ds_session()
642 clp->cl_lease_time = lease_time; in nfs4_init_ds_session()
643 clp->cl_last_renewal = jiffies; in nfs4_init_ds_session()
645 spin_unlock(&clp->cl_lock); in nfs4_init_ds_session()
647 ret = nfs41_check_session_ready(clp); in nfs4_init_ds_session()
[all …]
H A Dpnfs_nfs.c867 if (!IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect()
870 .net = clp->cl_net, in _nfs4_pnfs_v3_ds_connect()
891 if (IS_ERR(clp)) in _nfs4_pnfs_v3_ds_connect()
897 if (IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect()
898 status = PTR_ERR(clp); in _nfs4_pnfs_v3_ds_connect()
927 if (!IS_ERR(clp) && clp->cl_mvops->session_trunk) { in _nfs4_pnfs_v4_ds_connect()
930 .net = clp->cl_net, in _nfs4_pnfs_v4_ds_connect()
937 .clp = clp, in _nfs4_pnfs_v4_ds_connect()
1003 if (IS_ERR(clp)) in _nfs4_pnfs_v4_ds_connect()
1009 nfs_put_client(clp); in _nfs4_pnfs_v4_ds_connect()
[all …]
H A Dsysfs.c197 struct nfs_netns_client *clp; in nfs_netns_sysfs_setup() local
200 if (clp) { in nfs_netns_sysfs_setup()
201 netns->nfs_client = clp; in nfs_netns_sysfs_setup()
202 kobject_uevent(&clp->kobject, KOBJ_ADD); in nfs_netns_sysfs_setup()
208 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy() local
210 if (clp) { in nfs_netns_sysfs_destroy()
211 kobject_uevent(&clp->kobject, KOBJ_REMOVE); in nfs_netns_sysfs_destroy()
212 kobject_del(&clp->kobject); in nfs_netns_sysfs_destroy()
213 kobject_put(&clp->kobject); in nfs_netns_sysfs_destroy()
214 kobject_del(&clp->nfs_net_kobj); in nfs_netns_sysfs_destroy()
[all …]
H A Dnfs4proc.c825 clp = session->clp; in nfs41_sequence_process()
3971 .clp = clp, in test_fs_location_for_trunking()
8583 .clp = clp, in nfs4_proc_bind_conn_to_session()
9107 .clp = clp, in nfs4_proc_get_lease_time()
9306 .clp = clp, in nfs4_proc_create_session()
9374 struct nfs_client *clp = calldata->clp; in nfs41_sequence_release() local
9397 struct nfs_client *clp = calldata->clp; in nfs41_sequence_call_done() local
9419 struct nfs_client *clp = calldata->clp; in nfs41_sequence_prepare() local
9465 calldata->clp = clp; in _nfs41_proc_sequence()
9560 struct nfs_client *clp = calldata->clp; in nfs4_reclaim_complete_done() local
[all …]
H A Dpnfs_dev.c80 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument
86 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
232 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid() argument
238 d = _lookup_deviceid(ld, clp, id, nfs4_deviceid_hash(id)); in nfs4_delete_deviceid()
331 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument
339 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
358 nfs4_deviceid_purge_client(const struct nfs_client *clp) in nfs4_deviceid_purge_client() argument
362 if (!(clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_MDS)) in nfs4_deviceid_purge_client()
365 _deviceid_purge_client(clp, h); in nfs4_deviceid_purge_client()
372 nfs4_deviceid_mark_client_invalid(struct nfs_client *clp) in nfs4_deviceid_mark_client_invalid() argument
[all …]
H A Dfscache.c46 static bool nfs_fscache_get_client_key(struct nfs_client *clp, in nfs_fscache_get_client_key() argument
49 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &clp->cl_addr; in nfs_fscache_get_client_key()
50 const struct sockaddr_in *sin = (struct sockaddr_in *) &clp->cl_addr; in nfs_fscache_get_client_key()
54 clp->rpc_ops->version, in nfs_fscache_get_client_key()
55 clp->cl_minorversion, in nfs_fscache_get_client_key()
56 clp->cl_addr.ss_family); in nfs_fscache_get_client_key()
58 switch (clp->cl_addr.ss_family) { in nfs_fscache_get_client_key()
76 clp->cl_addr.ss_family); in nfs_fscache_get_client_key()
H A Dnfs3client.c105 struct nfs_client *clp; in nfs3_set_ds_client() local
127 clp = nfs_get_client(&cl_init); in nfs3_set_ds_client()
129 return clp; in nfs3_set_ds_client()
H A Dnfs4trace.h37 const struct nfs_client *clp,
41 TP_ARGS(clp, error),
66 TP_ARGS(clp, error))
326 const struct nfs_client *clp
329 TP_ARGS(clp),
1319 __string(dstaddr, clp ? clp->cl_hostname : "unknown")
1332 __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown");
1374 __string(dstaddr, clp ? clp->cl_hostname : "unknown")
1389 __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown");
1925 TP_ARGS(clp, deviceid),
[all …]
/openbmc/linux/fs/nfsd/
H A Dnfs4callback.c964 .net = clp->net, in setup_callback_client()
991 clp->cl_cb_session = ses; in setup_callback_client()
1014 clp->cl_cb_cred = cred; in setup_callback_client()
1026 trace_nfsd_cb_state(clp); in nfsd4_mark_cb_state()
1075 trace_nfsd_cb_probe(clp); in nfsd4_probe_callback()
1090 spin_lock(&clp->cl_lock); in nfsd4_change_callback()
1355 if (clp->cl_cb_client) { in nfsd4_process_cb_update()
1359 clp->cl_cb_cred = NULL; in nfsd4_process_cb_update()
1367 spin_lock(&clp->cl_lock); in nfsd4_process_cb_update()
1411 clnt = clp->cl_cb_client; in nfsd4_run_cb_work()
[all …]
H A Dnfs4state.c2515 if (!clp) in client_info_show()
2782 if (!clp) in client_states_open()
2852 if (!clp) in client_ctl_write()
4006 cstate->clp = clp; in nfsd4_sequence()
4041 cstate->clp = clp; in nfsd4_sequence()
4122 if (clp) in nfsd4_destroy_clientid()
4132 struct nfs4_client *clp = cstate->clp; in nfsd4_reclaim_complete() local
4590 struct nfs4_client *clp = cstate->clp; in alloc_init_open_stateowner() local
5060 clp = cstate->clp; in nfsd4_process_open1()
5861 clp = cstate->clp; in nfsd4_renew()
[all …]
H A Dnfs4recover.c188 crp->cr_clp = clp; in __nfsd4_create_reclaim_record_grace()
705 crp->cr_clp = clp; in nfsd4_check_legacy_client()
1116 clp->cl_name.len); in nfsd4_cld_create()
1158 clp->cl_name.len); in nfsd4_cld_create_v2()
1219 clp->cl_name.len); in nfsd4_cld_remove()
1262 clp->cl_name.len); in nfsd4_cld_check_v0()
1319 crp->cr_clp = clp; in nfsd4_cld_check()
1389 crp->cr_clp = clp; in nfsd4_cld_check_v2()
1911 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_create()
1938 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_remove()
[all …]
H A Dtrace.h781 TP_ARGS(clp, rqstp),
811 TP_ARGS(clp, rqstp, verf),
839 TP_ARGS(clp),
846 __string_len(name, clp->cl_name.data, clp->cl_name.len)
856 __assign_str_len(name, clp->cl_name.data, clp->cl_name.len);
868 TP_ARGS(clp))
1292 TP_ARGS(clp, conn),
1314 TP_ARGS(clp),
1335 TP_ARGS(clp),
1357 TP_ARGS(clp))
[all …]
H A Dnfs4layouts.c164 spin_lock(&clp->cl_lock); in nfsd4_free_layout_stateid()
166 spin_unlock(&clp->cl_lock); in nfsd4_free_layout_stateid()
216 struct nfs4_client *clp = cstate->clp; in nfsd4_alloc_layout_stateid() local
252 spin_lock(&clp->cl_lock); in nfsd4_alloc_layout_stateid()
255 spin_unlock(&clp->cl_lock); in nfsd4_alloc_layout_stateid()
538 struct nfs4_client *clp = cstate->clp; in nfsd4_return_client_layouts() local
544 spin_lock(&clp->cl_lock); in nfsd4_return_client_layouts()
562 spin_unlock(&clp->cl_lock); in nfsd4_return_client_layouts()
583 spin_lock(&clp->cl_lock); in nfsd4_return_all_client_layouts()
586 spin_unlock(&clp->cl_lock); in nfsd4_return_all_client_layouts()
[all …]
H A Dblocklayout.c167 struct nfs4_client *clp, in nfsd4_block_proc_getdeviceinfo() argument
217 static u64 nfsd4_scsi_pr_key(struct nfs4_client *clp) in nfsd4_scsi_pr_key() argument
219 return ((u64)clp->cl_clientid.cl_boot << 32) | clp->cl_clientid.cl_id; in nfsd4_scsi_pr_key()
249 struct nfs4_client *clp, in nfsd4_block_get_device_info_scsi() argument
267 b->scsi.pr_key = nfsd4_scsi_pr_key(clp); in nfsd4_block_get_device_info_scsi()
307 struct nfs4_client *clp, in nfsd4_scsi_proc_getdeviceinfo() argument
312 return nfserrno(nfsd4_block_get_device_info_scsi(sb, clp, gdp)); in nfsd4_scsi_proc_getdeviceinfo()
332 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_scsi_fence_client() local
336 nfsd4_scsi_pr_key(clp), 0, true); in nfsd4_scsi_fence_client()
H A Dstate.h693 extern void nfsd4_probe_callback(struct nfs4_client *clp);
694 extern void nfsd4_probe_callback_sync(struct nfs4_client *clp);
696 extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp,
702 extern void nfsd4_shutdown_copy(struct nfs4_client *clp);
711 struct nfs4_client *clp,
725 extern void nfsd4_client_record_create(struct nfs4_client *clp);
726 extern void nfsd4_client_record_remove(struct nfs4_client *clp);
727 extern int nfsd4_client_record_check(struct nfs4_client *clp);
730 static inline bool try_to_expire_client(struct nfs4_client *clp) in try_to_expire_client() argument
732 cmpxchg(&clp->cl_state, NFSD4_COURTESY, NFSD4_EXPIRABLE); in try_to_expire_client()
[all …]
H A Dpnfs.h27 struct nfs4_client *clp,
73 void nfsd4_return_all_file_layouts(struct nfs4_client *clp,
85 static inline void nfsd4_return_all_client_layouts(struct nfs4_client *clp) in nfsd4_return_all_client_layouts() argument
88 static inline void nfsd4_return_all_file_layouts(struct nfs4_client *clp, in nfsd4_return_all_file_layouts() argument

123