Home
last modified time | relevance | path

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

12345678910>>...47

/linux/fs/afs/ !
H A 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.
26 struct afs_server *server = (struct afs_server *)rxrpc_kernel_get_peer_data(peer); in afs_find_server() local
28 if (!server) in afs_find_server()
30 return afs_use_server(server, false, afs_server_trace_use_cm_call); in afs_find_server()
34 * Look up a server by its UUID and mark it active. The caller must hold
39 struct afs_server *server; in afs_find_server_by_uuid() local
47 server = rb_entry(p, struct afs_server, uuid_rb); in afs_find_server_by_uuid()
49 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid()
[all …]
H A 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 …]
H A Dfs_probe.c56 * outstanding server count.
59 struct afs_server *server, bool fast) in afs_schedule_fs_probe() argument
66 atj = server->probed_at; in afs_schedule_fs_probe()
77 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server, in afs_finished_fs_probe() argument
84 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe()
86 server->rtt = UINT_MAX; in afs_finished_fs_probe()
87 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe()
88 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe()
93 afs_schedule_fs_probe(net, server, !responded); in afs_finished_fs_probe()
99 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server, in afs_done_one_fs_probe() argument
[all …]
/linux/fs/smb/client/ !
H A Dtransport.c46 __le16 command = midEntry->server->vals->lock_cmd; in __release_mid()
51 struct TCP_Server_Info *server = midEntry->server; in __release_mid() local
56 server->ops->handle_cancelled_mid) in __release_mid()
57 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid()
72 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in __release_mid()
73 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid()
74 server->fastest_cmd[smb_cmd] = roundtrip_time; in __release_mid()
76 if (server->slowest_cmd[smb_cmd] < roundtrip_time) in __release_mid()
77 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid()
78 else if (server->fastest_cmd[smb_cmd] > roundtrip_time) in __release_mid()
[all …]
H A 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
78 if (!server->hostname) in reconn_set_ipaddr_from_hostname()
81 /* if server hostname isn't populated, there's nothing to do here */ in reconn_set_ipaddr_from_hostname()
82 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname()
85 spin_lock(&server->srv_lock); in reconn_set_ipaddr_from_hostname()
86 ss = server->dstaddr; in reconn_set_ipaddr_from_hostname()
[all …]
H A 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 …]
H A Dcifstransport.c37 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid() argument
41 if (server == NULL) { in alloc_mid()
56 temp->server = server; in alloc_mid()
73 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send() argument
85 return __smb_send_rqst(server, 1, &rqst); in smb_send()
111 *ppmidQ = alloc_mid(in_buf, ses->server); in allocate_mid()
114 spin_lock(&ses->server->mid_queue_lock); in allocate_mid()
115 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid()
116 spin_unlock(&ses->server->mid_queue_lock); in allocate_mid()
121 cifs_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) in cifs_setup_async_request() argument
[all …]
H A Dcifs_debug.c39 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument
47 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail()
49 server->ops->calc_smb_size(smb)); in cifs_dump_detail()
54 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument
59 if (server == NULL) in cifs_dump_mids()
63 spin_lock(&server->mid_queue_lock); in cifs_dump_mids()
64 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids()
81 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids()
86 spin_unlock(&server->mid_queue_lock); in cifs_dump_mids()
120 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
[all …]
H A Dsmb2pdu.c86 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
89 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
97 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument
105 if (server) { in smb2_hdr_assemble()
107 if (server->dialect >= SMB30_PROT_ID) { in smb2_hdr_assemble()
113 if (SERVER_IS_CHAN(server)) in smb2_hdr_assemble()
115 cpu_to_le16(server->primary_server->channel_sequence_num); in smb2_hdr_assemble()
118 cpu_to_le16(server->channel_sequence_num); in smb2_hdr_assemble()
120 spin_lock(&server->req_lock); in smb2_hdr_assemble()
122 if (server->credits >= server->max_credits) in smb2_hdr_assemble()
[all …]
H A Dsmb2ops.c36 change_conf(struct TCP_Server_Info *server) in change_conf() argument
38 server->credits += server->echo_credits + server->oplock_credits; in change_conf()
39 if (server->credits > server->max_credits) in change_conf()
40 server->credits = server->max_credits; in change_conf()
41 server->oplock_credits = server->echo_credits = 0; in change_conf()
42 switch (server->credits) { in change_conf()
46 server->echoes = false; in change_conf()
47 server->oplocks = false; in change_conf()
50 server->echoes = true; in change_conf()
51 server->oplocks = false; in change_conf()
[all …]
H A Dcifsencrypt.c58 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() argument
67 if (!is_smb1(server)) { 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()
124 rc = crypto_shash_init(server->secmech.md5); in cifs_calc_signature()
130 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature()
131 server->session_key.response, server->session_key.len); in cifs_calc_signature()
137 return __cifs_calc_signature(rqst, server, signature, server->secmech.md5); in cifs_calc_signature()
[all …]
H A Dsess.c49 struct TCP_Server_Info *server) in cifs_ses_get_chan_index() argument
54 if (server && server->terminate) in cifs_ses_get_chan_index()
58 if (ses->chans[i].server == server) in cifs_ses_get_chan_index()
63 if (server) in cifs_ses_get_chan_index()
64 cifs_dbg(VFS, "unable to get chan index for server: 0x%llx", in cifs_ses_get_chan_index()
65 server->conn_id); in cifs_ses_get_chan_index()
71 struct TCP_Server_Info *server) in cifs_chan_set_in_reconnect() argument
73 int chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_set_in_reconnect()
83 struct TCP_Server_Info *server) in cifs_chan_clear_in_reconnect() argument
85 unsigned int chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_clear_in_reconnect()
[all …]
/linux/fs/nfs/ !
H A Dclient.c222 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument
224 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server()
236 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument
456 * Mark a server as ready or failed
572 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument
574 if (server->nlm_host) in nfs_destroy_server()
575 nlmclnt_done(server->nlm_host); in nfs_destroy_server()
581 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument
584 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd()
590 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd()
[all …]
H A Dsysfs.c238 struct nfs_server *server; in shutdown_nfs_client() local
240 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in shutdown_nfs_client()
241 if (!(server->flags & NFS_MOUNT_SHUTDOWN)) { in shutdown_nfs_client()
255 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show() local
256 bool shutdown = server->flags & NFS_MOUNT_SHUTDOWN; in shutdown_show()
264 struct nfs_server *server; in shutdown_store() local
267 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store()
277 if (server->flags & NFS_MOUNT_SHUTDOWN) in shutdown_store()
280 server->flags |= NFS_MOUNT_SHUTDOWN; in shutdown_store()
281 shutdown_client(server->client); in shutdown_store()
[all …]
H A 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
239 * Set up the connection to the server before we add add to the in nfs4_alloc_client()
386 * The create session reply races with the server back in nfs41_init_client()
488 * "drop," but server trunking discovery claims "drop" and "keep" are
489 * actually the same server. Swap the callback IDs so that "keep"
490 * will continue to use the callback ident the server now knows about,
575 * nfs40_walk_client_list - Find server that recognizes a client ID
612 * caused the server to return a new cl_confirm. So if in nfs40_walk_client_list()
614 * server that just returned the same cl_confirm by in nfs40_walk_client_list()
[all …]
H A Ddelegation.c33 static struct hlist_head *nfs_delegation_hash(struct nfs_server *server, in nfs_delegation_hash() argument
36 return server->delegation_hash_table + in nfs_delegation_hash()
37 (nfs_fhandle_hash(fhandle) & server->delegation_hash_mask); in nfs_delegation_hash()
47 static void nfs_mark_delegation_revoked(struct nfs_server *server, in nfs_mark_delegation_revoked() argument
52 atomic_long_dec(&server->nr_active_delegations); in nfs_mark_delegation_revoked()
70 static void nfs_free_delegation(struct nfs_server *server, in nfs_free_delegation() argument
73 nfs_mark_delegation_revoked(server, delegation); in nfs_free_delegation()
87 static void nfs_mark_return_delegation(struct nfs_server *server, in nfs_mark_return_delegation() argument
91 set_bit(NFS4SERV_DELEGRETURN, &server->delegation_flags); in nfs_mark_return_delegation()
92 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
[all …]
H A 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 …]
/linux/fs/nfsd/ !
H A DKconfig3 tristate "NFS server support"
18 protocol. To compile the NFS server support as a module,
21 You may choose to use a user-space NFS server instead, in which
27 the Linux NFS server implementation is available via the
31 available to clients mounting the NFS server on this system.
38 bool "NFS server support for NFS version 2 (DEPRECATED)"
49 bool "NFS server support for the NFSv2 ACL protocol extension"
53 bool "NFS server support for the NFSv3 ACL protocol extension"
63 This option enables support in your system's NFS server for the
65 POSIX ACLs on files exported by your system's NFS server. NFS
[all …]
/linux/arch/powerpc/sysdev/xics/ !
H A 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 …]
/linux/Documentation/block/ !
H A Dublk.rst30 in this document, ``ublk server`` refers to generic ublk userspace
43 assigned by one queue wide unique tag. ublk server assigns unique tag to each
51 done by io_uring, but also the preferred IO handling in ublk server is io_uring
64 ublk requires userspace ublk server to handle real block device logic.
102 Add a ublk char device (``/dev/ublkc*``) which is talked with ublk server
106 for which the info is negotiated with the driver and sent back to the server.
118 After the server prepares userspace resources (such as creating I/O handler
126 ublk server will release resources (such as destroying I/O handler threads &
137 that each queue's affinity info is available. The server sends
144 For retrieving device info via ``ublksrv_ctrl_dev_info``. It is the server's
[all …]
/linux/net/netfilter/ipvs/ !
H A DKconfig3 # IP Virtual Server configuration
6 tristate "IP virtual server support"
10 IP Virtual Server support will let you build a high-performance
11 virtual server based on cluster of two or more real servers. This
17 virtual server via NAT, virtual server via tunneling and virtual
18 server via direct routing. The several scheduling algorithms can
19 be used to choose which server the connection is directed to,
39 bool "IP virtual server debugging"
42 debugging the IP virtual server code. You can change the debug
61 table size yourself, according to your virtual server application.
[all …]
/linux/drivers/infiniband/ulp/rtrs/ !
H A DREADME7 between client and server machines using RDMA (InfiniBand, RoCE, iWarp)
27 An established connection between a client and a server is called rtrs
29 server side for a given client for rdma transfer. A session
31 between client and server. Those are used for load balancing and failover.
36 chunks reserved for him on the server side. Their number, size and addresses
37 need to be exchanged between client and server during the connection
39 inform the server about the session name and identify each path and connection
42 On an established session client sends to server write or read messages.
43 Server uses immediate field to tell the client which request is being
44 acknowledged and for errno. Client uses immediate field to tell the server
[all …]
/linux/Documentation/filesystems/nfs/ !
H A Dlocalio.rst9 server to reliably handshake to determine if they are on the same
10 host. Select "NFS client and server support for LOCALIO auxiliary
14 Once an NFS client and server handshake as "local", the client will
29 The robust handshake between local client and server is just the
32 directly to the server without having to go over the network. The
36 server.
72 a. Workloads where the NFS client and server are on the same host
75 running on the same host as the knfsd server being used for
83 b. Allow client and server to autonomously discover if they are
93 deciding if the NFS client and server are co-located on the same
[all …]
H A Dclient-identifier.rst25 Simply put, an NFSv4 server creates a lease for each NFSv4 client.
26 The server collects each client's file open and lock state under
30 While a lease remains valid, the server holding that lease
34 the NFSv4 protocol allows the server to remove the client's open
40 In addition, each NFSv4 server manages a persistent list of client
41 leases. When the server restarts and clients attempt to recover
42 their state, the server uses this list to distinguish amongst
43 clients that held state before the server restarted and clients
45 persist safely across server restarts.
57 server to distinguish successive boot epochs of the same client.
[all …]
/linux/drivers/block/rnbd/ !
H A DREADME9 (client and server) that allow for remote access of a block device on
10 the server over RTRS protocol using the RDMA (InfiniBand, RoCE, iWARP)
14 I/O is transferred between client and server by the RTRS transport
26 Server side:
35 on client and on server sides; "path=" is a destination IP address or
39 mapped from the server side. After the session to the server machine is
44 RNBD-Server Module Parameters
50 When a device is mapped from the client, the server generates the path
51 to the block device on the server side by concatenating dev_search_path
64 1. Before mapping first device from a given server, client sends an
[all …]

12345678910>>...47