Home
last modified time | relevance | path

Searched full:server (Results 1 – 25 of 2168) sorted by relevance

12345678910>>...87

/kernel/linux/linux-6.6/fs/afs/
Dserver.c2 /* AFS server record management
14 static unsigned afs_server_gc_delay = 10; /* Server record timeout in seconds */
22 * Find a server by one of its addresses.
28 struct afs_server *server = NULL; in afs_find_server() local
35 if (server) in afs_find_server()
36 afs_unuse_server_notime(net, server, afs_server_trace_put_find_rsq); in afs_find_server()
37 server = NULL; in afs_find_server()
43 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server()
44 alist = rcu_dereference(server->addresses); in afs_find_server()
59 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server()
[all …]
Dfs_probe.c20 * outstanding server count.
23 struct afs_server *server, bool fast) in afs_schedule_fs_probe() argument
30 atj = server->probed_at; in afs_schedule_fs_probe()
41 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() argument
43 bool responded = server->probe.responded; in afs_finished_fs_probe()
47 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe()
49 server->rtt = UINT_MAX; in afs_finished_fs_probe()
50 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe()
51 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe()
55 afs_schedule_fs_probe(net, server, !responded); in afs_finished_fs_probe()
[all …]
Dvl_probe.c18 static void afs_finished_vl_probe(struct afs_vlserver *server) in afs_finished_vl_probe() argument
20 if (!(server->probe.flags & AFS_VLSERVER_PROBE_RESPONDED)) { in afs_finished_vl_probe()
21 server->rtt = UINT_MAX; in afs_finished_vl_probe()
22 clear_bit(AFS_VLSERVER_FL_RESPONDING, &server->flags); in afs_finished_vl_probe()
25 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); in afs_finished_vl_probe()
26 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); in afs_finished_vl_probe()
32 static void afs_done_one_vl_probe(struct afs_vlserver *server, bool wake_up) in afs_done_one_vl_probe() argument
34 if (atomic_dec_and_test(&server->probe_outstanding)) { in afs_done_one_vl_probe()
35 afs_finished_vl_probe(server); in afs_done_one_vl_probe()
40 wake_up_all(&server->probe_wq); in afs_done_one_vl_probe()
[all …]
Dserver_list.c18 afs_unuse_server(net, slist->servers[i].server, in afs_put_serverlist()
25 * Build a server list from a VLDB record.
32 struct afs_server *server; in afs_alloc_server_list() local
47 /* Make sure a records exists for each server in the list. */ in afs_alloc_server_list()
52 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], in afs_alloc_server_list()
54 if (IS_ERR(server)) { in afs_alloc_server_list()
55 ret = PTR_ERR(server); in afs_alloc_server_list()
64 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list()
65 &server->uuid, in afs_alloc_server_list()
66 sizeof(server->uuid)) >= 0) in afs_alloc_server_list()
[all …]
/kernel/linux/linux-5.10/fs/afs/
Dserver.c2 /* AFS server record management
14 static unsigned afs_server_gc_delay = 10; /* Server record timeout in seconds */
22 * Find a server by one of its addresses.
28 struct afs_server *server = NULL; in afs_find_server() local
35 if (server) in afs_find_server()
36 afs_unuse_server_notime(net, server, afs_server_trace_put_find_rsq); in afs_find_server()
37 server = NULL; in afs_find_server()
43 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server()
44 alist = rcu_dereference(server->addresses); in afs_find_server()
59 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server()
[all …]
Dfs_probe.c19 * outstanding server count.
22 struct afs_server *server, bool fast) in afs_schedule_fs_probe() argument
29 atj = server->probed_at; in afs_schedule_fs_probe()
40 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() argument
42 bool responded = server->probe.responded; in afs_finished_fs_probe()
46 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe()
48 server->rtt = UINT_MAX; in afs_finished_fs_probe()
49 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe()
50 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe()
54 afs_schedule_fs_probe(net, server, !responded); in afs_finished_fs_probe()
[all …]
Dvl_probe.c18 static void afs_finished_vl_probe(struct afs_vlserver *server) in afs_finished_vl_probe() argument
20 if (!(server->probe.flags & AFS_VLSERVER_PROBE_RESPONDED)) { in afs_finished_vl_probe()
21 server->rtt = UINT_MAX; in afs_finished_vl_probe()
22 clear_bit(AFS_VLSERVER_FL_RESPONDING, &server->flags); in afs_finished_vl_probe()
25 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); in afs_finished_vl_probe()
26 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); in afs_finished_vl_probe()
32 static void afs_done_one_vl_probe(struct afs_vlserver *server, bool wake_up) in afs_done_one_vl_probe() argument
34 if (atomic_dec_and_test(&server->probe_outstanding)) { in afs_done_one_vl_probe()
35 afs_finished_vl_probe(server); in afs_done_one_vl_probe()
40 wake_up_all(&server->probe_wq); in afs_done_one_vl_probe()
[all …]
/kernel/linux/linux-6.6/fs/smb/client/
Dtransport.c44 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid() argument
48 if (server == NULL) { in alloc_mid()
63 temp->server = server; in alloc_mid()
84 __le16 command = midEntry->server->vals->lock_cmd; in __release_mid()
89 struct TCP_Server_Info *server = midEntry->server; in __release_mid() local
94 server->ops->handle_cancelled_mid) in __release_mid()
95 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid()
110 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in __release_mid()
111 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid()
112 server->fastest_cmd[smb_cmd] = roundtrip_time; in __release_mid()
[all …]
Dconnect.c59 /* Drop the connection to not overload the server */
62 static int ip_connect(struct TCP_Server_Info *server);
63 static int generic_ip_connect(struct TCP_Server_Info *server);
71 * This should be called with server->srv_mutex held.
73 static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server) in reconn_set_ipaddr_from_hostname() argument
80 if (!server->hostname) in reconn_set_ipaddr_from_hostname()
83 /* if server hostname isn't populated, there's nothing to do here */ in reconn_set_ipaddr_from_hostname()
84 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname()
87 len = strlen(server->hostname) + 3; in reconn_set_ipaddr_from_hostname()
94 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr_from_hostname()
[all …]
Dsmb2transport.c30 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) in smb3_crypto_shash_allocate() argument
32 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate()
50 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) in smb311_crypto_shash_allocate() argument
52 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate()
77 int smb3_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) in smb3_get_sign_key() argument
88 /* If server is a channel, select the primary channel */ in smb3_get_sign_key()
89 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in smb3_get_sign_key()
105 is_binding = (cifs_chan_needs_reconnect(ses, server) && in smb3_get_sign_key()
125 if (chan->server == server) { in smb3_get_sign_key()
146 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses_unlocked() argument
[all …]
Dcifs_debug.c38 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument
46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail()
48 server->ops->calc_smb_size(smb)); in cifs_dump_detail()
53 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument
58 if (server == NULL) in cifs_dump_mids()
62 spin_lock(&server->mid_lock); in cifs_dump_mids()
63 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids()
80 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids()
85 spin_unlock(&server->mid_lock); in cifs_dump_mids()
119 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
[all …]
Dcifsencrypt.c172 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() argument
181 if (!is_smb1(server)) { in __cifs_calc_signature()
224 * should be called with the server->srv_mutex held.
227 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() argument
231 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature()
234 rc = cifs_alloc_hash("md5", &server->secmech.md5); in cifs_calc_signature()
238 rc = crypto_shash_init(server->secmech.md5); in cifs_calc_signature()
244 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature()
245 server->session_key.response, server->session_key.len); in cifs_calc_signature()
251 return __cifs_calc_signature(rqst, server, signature, server->secmech.md5); in cifs_calc_signature()
[all …]
/kernel/linux/linux-6.6/fs/nfs/
Dclient.c215 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument
217 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server()
229 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument
444 * Mark a server as ready or failed
558 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument
560 if (server->nlm_host) in nfs_destroy_server()
561 nlmclnt_done(server->nlm_host); in nfs_destroy_server()
567 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument
570 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd()
576 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd()
[all …]
Dnfs4client.c48 * Per auth flavor data server rpc clients
129 * Find or create a DS rpc client with th MDS server rpc client auth flavor
237 * Set up the connection to the server before we add add to the in nfs4_alloc_client()
384 * The create session reply races with the server back in nfs41_init_client()
486 * "drop," but server trunking discovery claims "drop" and "keep" are
487 * actually the same server. Swap the callback IDs so that "keep"
488 * will continue to use the callback ident the server now knows about,
573 * nfs40_walk_client_list - Find server that recognizes a client ID
610 * caused the server to return a new cl_confirm. So if in nfs40_walk_client_list()
612 * server that just returned the same cl_confirm by in nfs40_walk_client_list()
[all …]
Dnfs3client.c27 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument
29 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient()
32 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient()
33 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient()
36 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); in nfs_init_server_aclclient()
39 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient()
43 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient()
46 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument
48 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient()
49 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dtransport.c54 AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in AllocMidQEntry() argument
58 if (server == NULL) { in AllocMidQEntry()
73 temp->server = server; in AllocMidQEntry()
94 __le16 command = midEntry->server->vals->lock_cmd; in _cifs_mid_q_entry_release()
99 struct TCP_Server_Info *server = midEntry->server; in _cifs_mid_q_entry_release() local
103 server->ops->handle_cancelled_mid) in _cifs_mid_q_entry_release()
104 server->ops->handle_cancelled_mid(midEntry, server); in _cifs_mid_q_entry_release()
119 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in _cifs_mid_q_entry_release()
120 server->slowest_cmd[smb_cmd] = roundtrip_time; in _cifs_mid_q_entry_release()
121 server->fastest_cmd[smb_cmd] = roundtrip_time; in _cifs_mid_q_entry_release()
[all …]
Dcifsencrypt.c41 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() argument
48 int is_smb2 = server->vals->header_preamble_size == 0; in __cifs_calc_signature()
110 * should be called with the server->srv_mutex held.
113 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() argument
117 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature()
120 rc = cifs_alloc_hash("md5", &server->secmech.md5, in cifs_calc_signature()
121 &server->secmech.sdescmd5); in cifs_calc_signature()
125 rc = crypto_shash_init(&server->secmech.sdescmd5->shash); in cifs_calc_signature()
131 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature()
132 server->session_key.response, server->session_key.len); in cifs_calc_signature()
[all …]
Dsmb2transport.c44 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) in smb3_crypto_shash_allocate() argument
46 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate()
66 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) in smb311_crypto_shash_allocate() argument
68 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate()
95 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) in smb2_get_sign_key() argument
133 if (chan->server == server) { in smb2_get_sign_key()
150 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses_unlocked() argument
154 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_find_smb_ses_unlocked()
164 smb2_find_smb_ses(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses() argument
169 ses = smb2_find_smb_ses_unlocked(server, ses_id); in smb2_find_smb_ses()
[all …]
Dconnect.c73 /* Drop the connection to not overload the server */
283 static int ip_connect(struct TCP_Server_Info *server);
284 static int generic_ip_connect(struct TCP_Server_Info *server);
293 * This should be called with server->srv_mutex held.
296 static int reconn_set_ipaddr(struct TCP_Server_Info *server) in reconn_set_ipaddr() argument
302 if (!server->hostname) in reconn_set_ipaddr()
305 len = strlen(server->hostname) + 3; in reconn_set_ipaddr()
312 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr()
318 cifs_dbg(FYI, "%s: failed to resolve server part of %s to IP: %d\n", in reconn_set_ipaddr()
319 __func__, server->hostname, rc); in reconn_set_ipaddr()
[all …]
Dcifs_debug.c35 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument
44 server->ops->calc_smb_size(smb, server)); in cifs_dump_detail()
48 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument
54 if (server == NULL) in cifs_dump_mids()
59 list_for_each(tmp, &server->pending_mid_q) { in cifs_dump_mids()
77 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids()
116 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
117 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
127 struct TCP_Server_Info *server = chan->server; in cifs_dump_channel() local
130 "TCP status: %d Instance: %d Local Users To Server: %d " in cifs_dump_channel()
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Dclient.c215 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument
217 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server()
229 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument
442 * Mark a server as ready or failed
553 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument
555 if (server->nlm_host) in nfs_destroy_server()
556 nlmclnt_done(server->nlm_host); in nfs_destroy_server()
562 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument
565 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd()
571 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd()
[all …]
Dnfs4client.c47 * Per auth flavor data server rpc clients
128 * Find or create a DS rpc client with th MDS server rpc client auth flavor
235 * Set up the connection to the server before we add add to the in nfs4_alloc_client()
382 * The create session reply races with the server back in nfs41_init_client()
453 * "drop," but server trunking discovery claims "drop" and "keep" are
454 * actually the same server. Swap the callback IDs so that "keep"
455 * will continue to use the callback ident the server now knows about,
540 * nfs40_walk_client_list - Find server that recognizes a client ID
577 * caused the server to return a new cl_confirm. So if in nfs40_walk_client_list()
579 * server that just returned the same cl_confirm by in nfs40_walk_client_list()
[all …]
/kernel/linux/linux-6.6/fs/nfsd/
DKconfig3 tristate "NFS server support"
17 protocol. To compile the NFS server support as a module,
20 You may choose to use a user-space NFS server instead, in which
26 the Linux NFS server implementation is available via the
30 available to clients mounting the NFS server on this system.
37 bool "NFS server support for NFS version 2 (DEPRECATED)"
48 bool "NFS server support for the NFSv2 ACL protocol extension"
52 bool "NFS server support for the NFSv3 ACL protocol extension"
62 This option enables support in your system's NFS server for the
64 POSIX ACLs on files exported by your system's NFS server. NFS
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
DKconfig3 tristate "NFS server support"
15 protocol. To compile the NFS server support as a module,
18 You may choose to use a user-space NFS server instead, in which
24 the Linux NFS server implementation is available via the
28 available to clients mounting the NFS server on this system.
39 bool "NFS server support for NFS version 3"
42 This option enables support in your system's NFS server for
48 bool "NFS server support for the NFSv3 ACL protocol extension"
59 This option enables support in your system's NFS server for the
61 POSIX ACLs on files exported by your system's NFS server. NFS
[all …]
/kernel/linux/linux-6.6/arch/powerpc/sysdev/xics/
Dics-opal.c29 static int ics_opal_mangle_server(int server) in ics_opal_mangle_server() argument
32 return server << 2; in ics_opal_mangle_server()
35 static int ics_opal_unmangle_server(int server) in ics_opal_unmangle_server() argument
38 return server >> 2; in ics_opal_unmangle_server()
45 int server; in ics_opal_unmask_irq() local
52 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq()
53 server = ics_opal_mangle_server(server); in ics_opal_unmask_irq()
55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq()
57 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server=%x)" in ics_opal_unmask_irq()
59 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq()
[all …]

12345678910>>...87