| /linux/fs/afs/ |
| H A D | server.c | 2 /* 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 D | vl_probe.c | 18 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 D | fs_probe.c | 56 * 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 …]
|
| H A D | vl_list.c | 70 afs_put_vlserver(net, vllist->servers[i].server); in afs_put_vlserverlist() 87 * Build a VL server address list from a DNS queried server list. 158 * Build a VL server list from a DNS queried server list. 168 struct afs_vlserver *server; in afs_extract_vlserver_list() local 174 /* Check that it's a server list, v1 */ in afs_extract_vlserver_list() 239 /* See if we can update an old server record */ in afs_extract_vlserver_list() 240 server = NULL; in afs_extract_vlserver_list() 242 struct afs_vlserver *p = previous->servers[i].server; in afs_extract_vlserver_list() 247 server = afs_get_vlserver(p); in afs_extract_vlserver_list() 252 if (!server) { in afs_extract_vlserver_list() [all …]
|
| H A D | server_list.c | 18 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 70 /* Make sure a records exists for each server in the list. */ in afs_alloc_server_list() 82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], in afs_alloc_server_list() 84 if (IS_ERR(server)) { in afs_alloc_server_list() 85 ret = PTR_ERR(server); in afs_alloc_server_list() 94 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 95 &server->uuid, in afs_alloc_server_list() 96 sizeof(server->uuid)) >= 0) in afs_alloc_server_list() [all …]
|
| /linux/fs/smb/client/ |
| H A D | transport.c | 34 cifs_wake_up_task(struct TCP_Server_Info *server, struct mid_q_entry *mid) in cifs_wake_up_task() argument 41 void __release_mid(struct TCP_Server_Info *server, struct mid_q_entry *midEntry) in __release_mid() argument 44 __le16 command = server->vals->lock_cmd; in __release_mid() 53 server->ops->handle_cancelled_mid) in __release_mid() 54 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid() 69 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in __release_mid() 70 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid() 71 server->fastest_cmd[smb_cmd] = roundtrip_time; in __release_mid() 73 if (server->slowest_cmd[smb_cmd] < roundtrip_time) in __release_mid() 74 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid() [all …]
|
| H A D | connect.c | 58 /* Drop the connection to not overload the server */ 61 static int ip_connect(struct TCP_Server_Info *server); 62 static int generic_ip_connect(struct TCP_Server_Info *server); 74 * This should be called with server->srv_mutex held. 76 static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server) in reconn_set_ipaddr_from_hostname() argument 81 if (!server->hostname) in reconn_set_ipaddr_from_hostname() 84 /* if server hostname isn't populated, there's nothing to do here */ in reconn_set_ipaddr_from_hostname() 85 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname() 88 spin_lock(&server->srv_lock); in reconn_set_ipaddr_from_hostname() 89 ss = server->dstaddr; in reconn_set_ipaddr_from_hostname() [all …]
|
| H A D | smb1encrypt.c | 24 * should be called with the server->srv_mutex held. 27 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() argument 31 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature() 40 md5_update(&ctx, server->session_key.response, server->session_key.len); in cifs_calc_signature() 43 rqst, server, signature, in cifs_calc_signature() 47 /* must be called with server->srv_mutex held */ 48 int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, in cifs_sign_rqst() argument 55 if ((cifs_pdu == NULL) || (server == NULL)) in cifs_sign_rqst() 58 spin_lock(&server->srv_lock); in cifs_sign_rqst() 60 server->tcpStatus == CifsNeedNegotiate) { in cifs_sign_rqst() [all …]
|
| H A D | sess.c | 48 struct TCP_Server_Info *server) in cifs_ses_get_chan_index() argument 53 if (server && server->terminate) in cifs_ses_get_chan_index() 57 if (ses->chans[i].server == server) in cifs_ses_get_chan_index() 62 if (server) in cifs_ses_get_chan_index() 63 cifs_dbg(VFS, "unable to get chan index for server: 0x%llx", in cifs_ses_get_chan_index() 64 server->conn_id); in cifs_ses_get_chan_index() 70 struct TCP_Server_Info *server) in cifs_chan_set_in_reconnect() argument 72 int chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_set_in_reconnect() 82 struct TCP_Server_Info *server) in cifs_chan_clear_in_reconnect() argument 84 unsigned int chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_clear_in_reconnect() [all …]
|
| H A D | smb2pdu.c | 85 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 88 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 96 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument 104 if (server) { in smb2_hdr_assemble() 106 if (server->dialect >= SMB30_PROT_ID) { in smb2_hdr_assemble() 112 if (SERVER_IS_CHAN(server)) in smb2_hdr_assemble() 114 cpu_to_le16(server->primary_server->channel_sequence_num); in smb2_hdr_assemble() 117 cpu_to_le16(server->channel_sequence_num); in smb2_hdr_assemble() 119 spin_lock(&server->req_lock); in smb2_hdr_assemble() 121 if (server->credits >= server->max_credits) in smb2_hdr_assemble() [all …]
|
| H A D | smb2ops.c | 36 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 D | cifsproto.h | 35 int smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, 84 void delete_mid(struct TCP_Server_Info *server, struct mid_q_entry *mid); 85 void __release_mid(struct TCP_Server_Info *server, 87 void cifs_wake_up_task(struct TCP_Server_Info *server, 89 int cifs_handle_standard(struct TCP_Server_Info *server, 95 int cifs_discard_remaining_data(struct TCP_Server_Info *server); 96 int cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, 102 struct TCP_Server_Info *server, struct smb_rqst *rqst, 105 struct TCP_Server_Info *server, const int flags, 109 struct TCP_Server_Info *server); [all …]
|
| H A D | smbdirect.h | 11 #define cifs_rdma_enabled(server) ((server)->rdma) argument 32 struct TCP_Server_Info *server, struct sockaddr *dstaddr); 37 int smbd_reconnect(struct TCP_Server_Info *server); 39 void smbd_destroy(struct TCP_Server_Info *server); 43 int smbd_send(struct TCP_Server_Info *server, 54 void smbd_debug_proc_show(struct TCP_Server_Info *server, struct seq_file *m); 57 #define cifs_rdma_enabled(server) 0 argument 60 struct TCP_Server_Info *server, struct sockaddr *dstaddr) {return NULL;} in smbd_get_connection() argument 61 static inline int smbd_reconnect(struct TCP_Server_Info *server) {return -1; } in smbd_reconnect() argument 62 static inline void smbd_destroy(struct TCP_Server_Info *server) {} in smbd_destroy() argument [all …]
|
| H A D | cifsglob.h | 56 * max sleep time before retry to server 89 /* smb multichannel query server interfaces interval in seconds */ 98 * defaults to 128 credits, the Windows server allows clients up to 99 * 512 credits (or 8K for later versions), and the NetApp server 103 * to reduce possibility of seeing more server credit overflow bugs. 138 /* associated with each tree connection to the server */ 233 __u32 server_flags; /* sent by server in type 2 ntlmssp exchange */ 234 unsigned char ciphertext[CIFS_CPHTXT_SIZE]; /* sent to server */ 284 * A smb_rqst represents a complete request to be issued to a server. It's 312 int (*send_cancel)(struct cifs_ses *ses, struct TCP_Server_Info *server, [all …]
|
| /linux/fs/nfs/ |
| H A D | sysfs.c | 242 struct nfs_server *server; in shutdown_nfs_client() local 244 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in shutdown_nfs_client() 245 if (!(server->flags & NFS_MOUNT_SHUTDOWN)) { in shutdown_nfs_client() 259 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show() local 260 bool shutdown = server->flags & NFS_MOUNT_SHUTDOWN; in shutdown_show() 268 struct nfs_server *server; in shutdown_store() local 271 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store() 281 if (server->flags & NFS_MOUNT_SHUTDOWN) in shutdown_store() 284 server->flags |= NFS_MOUNT_SHUTDOWN; in shutdown_store() 285 shutdown_client(server->client); in shutdown_store() [all …]
|
| H A D | nfs4client.c | 48 * Per auth flavor data server rpc clients 129 * Find or create a DS rpc client with th MDS server rpc client auth flavor 230 * Set up the connection to the server before we add add to the in nfs4_alloc_client() 353 * The create session reply races with the server back in nfs41_init_client() 504 * Returns true if the server major ids match 516 * Returns true if the server scopes match 578 * nfs41_walk_client_list - Find nfs_client that matches a client/server owner 632 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server() argument 636 nfs_server_return_all_delegations(server); in nfs4_destroy_server() 637 unset_pnfs_layoutdriver(server); in nfs4_destroy_server() [all …]
|
| H A D | nfs3client.c | 28 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 30 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient() 33 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient() 34 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient() 37 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); in nfs_init_server_aclclient() 40 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient() 44 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 47 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 49 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient() 50 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() [all …]
|
| H A D | nfs40proc.c | 153 static int nfs40_test_and_free_expired_stateid(struct nfs_server *server, in nfs40_test_and_free_expired_stateid() argument 161 * This operation also signals the server that this client is 162 * performing migration recovery. The server can stop returning 167 static int _nfs40_proc_get_locations(struct nfs_server *server, in _nfs40_proc_get_locations() argument 172 struct rpc_clnt *clnt = server->client; in _nfs40_proc_get_locations() 173 struct nfs_client *clp = server->nfs_client; in _nfs40_proc_get_locations() 200 locations->server = server; in _nfs40_proc_get_locations() 204 status = nfs4_call_sync_sequence(clnt, server, &msg, in _nfs40_proc_get_locations() 209 renew_lease(server, now); in _nfs40_proc_get_locations() 214 * This operation also signals the server that this client is [all …]
|
| H A D | nfs4proc.c | 97 static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, 152 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 155 return server->attr_bitmask; in nfs4_bitmask() 157 return server->attr_bitmask_nl; in nfs4_bitmask() 168 nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 169 { return server->attr_bitmask; } in nfs4_bitmask() 364 * when talking to the server, we always send cookie 0 in nfs4_setup_readdir() 410 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid() argument 414 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid() 416 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() [all …]
|
| /linux/arch/powerpc/sysdev/xics/ |
| H A D | ics-opal.c | 29 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/drivers/infiniband/ulp/rtrs/ |
| H A D | README | 7 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/admin-guide/cifs/ |
| H A D | usage.rst | 66 and maximum number of simultaneous requests to one server can be configured. 100 //server/usersharename /mnt/username cifs user 0 0 132 to the file /etc/fstab for each //server/share you wish to mount, but 142 (CIFS/SMB1), we recommend using a server that supports the SNIA CIFS 146 not have a server that supports the Unix extensions for CIFS (such as Samba 147 2.2.5 or later). To enable the Unix CIFS Extensions in the Samba server, add 152 to your smb.conf file on the server. Note that the following smb.conf settings 153 are also useful (on the Samba server) when the majority of clients are Unix or 160 Note that server ea support is required for supporting xattrs from the Linux 178 enabled on the server and client, subsequent setattr calls (e.g. chmod) can [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | userspace_pm.sh | 176 # the MPTCP client and server 210 # Run the server 217 # Run the client, transfer $file and stay connected to the server 225 # Capture client/server attributes from MPTCP connection netlink events 251 …test_fail "Expected tokens (c:${client_token} - s:${server_token}), server (c:${client_serverside}… 318 # Capture events on the network namespace running the server 336 # ADD_ADDR from the client to server machine reusing the subflow port 346 # ADD_ADDR6 from the client to server machine reusing the subflow port 355 # ADD_ADDR from the client to server machine using a new port 368 # ADD_ADDR from the server to client machine reusing the subflow port [all …]
|
| /linux/Documentation/filesystems/nfs/ |
| H A D | client-identifier.rst | 25 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 D | README | 9 (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 …]
|