Lines Matching full:server

94 	    (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))  in smb3_encryption_required()
102 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument
107 if (server) { in smb2_hdr_assemble()
108 spin_lock(&server->req_lock); in smb2_hdr_assemble()
110 if (server->credits >= server->max_credits) in smb2_hdr_assemble()
114 min_t(int, server->max_credits - in smb2_hdr_assemble()
115 server->credits, 10)); in smb2_hdr_assemble()
116 spin_unlock(&server->req_lock); in smb2_hdr_assemble()
127 if (server && (server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble()
138 * to pass the path on the Open SMB prefixed by \\server\share. in smb2_hdr_assemble()
141 * illegal to send an empty path name (without \\server\share prefix) in smb2_hdr_assemble()
149 if (server && server->sign && !smb3_encryption_required(tcon)) in smb2_hdr_assemble()
157 struct TCP_Server_Info *server) in smb2_reconnect() argument
190 (!tcon->ses->server) || !server) in smb2_reconnect()
194 retries = server->nr_targets; in smb2_reconnect()
201 while (server->tcpStatus == CifsNeedReconnect) { in smb2_reconnect()
217 rc = wait_event_interruptible_timeout(server->response_q, in smb2_reconnect()
218 (server->tcpStatus != CifsNeedReconnect), in smb2_reconnect()
227 if (server->tcpStatus != CifsNeedReconnect) in smb2_reconnect()
235 * retrying until process is killed or server comes in smb2_reconnect()
242 retries = server->nr_targets; in smb2_reconnect()
258 * and the server never sends an answer the socket will be closed in smb2_reconnect()
261 if (server->tcpStatus == CifsNeedReconnect) { in smb2_reconnect()
270 if (server->is_channel) { in smb2_reconnect()
272 ses->binding_chan = cifs_ses_find_chan(ses, server); in smb2_reconnect()
312 mod_delayed_work(cifsiod_wq, &server->reconnect, 0); in smb2_reconnect()
321 * BB Is flush done by server on drop of tcp session? Should we special in smb2_reconnect()
343 struct TCP_Server_Info *server, in fill_small_buf() argument
357 smb2_hdr_assemble(&spdu->sync_hdr, smb2_command, tcon, server); in fill_small_buf()
369 struct TCP_Server_Info *server, in __smb2_plain_req_init() argument
382 fill_small_buf(smb2_command, tcon, server, in __smb2_plain_req_init()
396 struct TCP_Server_Info *server, in smb2_plain_req_init() argument
401 rc = smb2_reconnect(smb2_command, tcon, server); in smb2_plain_req_init()
405 return __smb2_plain_req_init(smb2_command, tcon, server, request_buf, in smb2_plain_req_init()
410 struct TCP_Server_Info *server, in smb2_ioctl_req_init() argument
415 return __smb2_plain_req_init(SMB2_IOCTL, tcon, server, in smb2_ioctl_req_init()
418 return smb2_plain_req_init(SMB2_IOCTL, tcon, server, in smb2_ioctl_req_init()
477 /* copy up to max of first 100 bytes of server name to NetName field */ in build_netname_ctxt()
510 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument
540 if (server->compress_algorithm) { in assemble_neg_contexts()
553 server->hostname); in assemble_neg_contexts()
567 pr_warn_once("server sent bad preauth context\n"); in decode_preauth_context()
576 static void decode_compress_ctx(struct TCP_Server_Info *server, in decode_compress_ctx() argument
583 pr_warn_once("server sent bad compression cntxt\n"); in decode_compress_ctx()
594 server->compress_algorithm = ctxt->CompressionAlgorithms[0]; in decode_compress_ctx()
597 static int decode_encrypt_ctx(struct TCP_Server_Info *server, in decode_encrypt_ctx() argument
604 pr_warn_once("server sent bad crypto ctxt len\n"); in decode_encrypt_ctx()
615 cifs_dbg(VFS, "Server does not support requested encryption type (AES256 GCM)\n"); in decode_encrypt_ctx()
620 * e.g. if server only supported AES256_CCM (very unlikely) in decode_encrypt_ctx()
621 * or server supported no encryption types or had all disabled. in decode_encrypt_ctx()
625 * seal not requested by client, since server is allowed to in decode_encrypt_ctx()
628 server->cipher_type = 0; in decode_encrypt_ctx()
629 server->capabilities &= ~SMB2_GLOBAL_CAP_ENCRYPTION; in decode_encrypt_ctx()
630 pr_warn_once("Server does not support requested encryption types\n"); in decode_encrypt_ctx()
635 /* server returned a cipher we didn't ask for */ in decode_encrypt_ctx()
639 server->cipher_type = ctxt->Ciphers[0]; in decode_encrypt_ctx()
640 server->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in decode_encrypt_ctx()
645 struct TCP_Server_Info *server, in smb311_decode_neg_context() argument
680 rc = decode_encrypt_ctx(server, in smb311_decode_neg_context()
683 decode_compress_ctx(server, in smb311_decode_neg_context()
686 server->posix_ext_supported = true; in smb311_decode_neg_context()
787 struct TCP_Server_Info *server = cifs_ses_server(ses); in SMB2_negotiate() local
795 if (!server) { in SMB2_negotiate()
796 WARN(1, "%s: server is NULL!\n", __func__); in SMB2_negotiate()
800 rc = smb2_plain_req_init(SMB2_NEGOTIATE, NULL, server, in SMB2_negotiate()
807 memset(server->preauth_sha_hash, 0, SMB2_PREAUTH_HASH_SIZE); in SMB2_negotiate()
810 if (strcmp(server->vals->version_string, in SMB2_negotiate()
816 } else if (strcmp(server->vals->version_string, in SMB2_negotiate()
826 req->Dialects[0] = cpu_to_le16(server->vals->protocol_id); in SMB2_negotiate()
839 req->Capabilities = cpu_to_le32(server->vals->req_capabilities); in SMB2_negotiate()
842 if (server->vals->protocol_id == SMB20_PROT_ID) in SMB2_negotiate()
845 memcpy(req->ClientGUID, server->client_guid, in SMB2_negotiate()
847 if ((server->vals->protocol_id == SMB311_PROT_ID) || in SMB2_negotiate()
848 (strcmp(server->vals->version_string, in SMB2_negotiate()
850 assemble_neg_contexts(req, server, &total_len); in SMB2_negotiate()
859 rc = cifs_send_recv(xid, ses, server, in SMB2_negotiate()
868 …cifs_server_dbg(VFS, "Dialect not supported by server. Consider specifying vers=1.0 or vers=2.0 o… in SMB2_negotiate()
873 if (strcmp(server->vals->version_string, in SMB2_negotiate()
884 } else if (strcmp(server->vals->version_string, in SMB2_negotiate()
892 server->ops = &smb21_operations; in SMB2_negotiate()
893 server->vals = &smb21_values; in SMB2_negotiate()
895 server->ops = &smb311_operations; in SMB2_negotiate()
896 server->vals = &smb311_values; in SMB2_negotiate()
899 server->vals->protocol_id) { in SMB2_negotiate()
919 cifs_server_dbg(VFS, "Invalid dialect returned by server 0x%x\n", in SMB2_negotiate()
924 server->dialect = le16_to_cpu(rsp->DialectRevision); in SMB2_negotiate()
929 * server. in SMB2_negotiate()
931 memcpy(server->preauth_sha_hash, ses->preauth_sha_hash, in SMB2_negotiate()
935 server->negflavor = CIFS_NEGFLAVOR_EXTENDED; in SMB2_negotiate()
937 server->maxBuf = min_t(unsigned int, le32_to_cpu(rsp->MaxTransactSize), in SMB2_negotiate()
939 server->max_read = le32_to_cpu(rsp->MaxReadSize); in SMB2_negotiate()
940 server->max_write = le32_to_cpu(rsp->MaxWriteSize); in SMB2_negotiate()
941 server->sec_mode = le16_to_cpu(rsp->SecurityMode); in SMB2_negotiate()
942 if ((server->sec_mode & SMB2_SEC_MODE_FLAGS_ALL) != server->sec_mode) in SMB2_negotiate()
943 cifs_dbg(FYI, "Server returned unexpected security mode 0x%x\n", in SMB2_negotiate()
944 server->sec_mode); in SMB2_negotiate()
945 server->capabilities = le32_to_cpu(rsp->Capabilities); in SMB2_negotiate()
947 server->capabilities |= SMB2_NT_FIND | SMB2_LARGE_FILES; in SMB2_negotiate()
956 * We just found a server which sets blob length to zero expecting raw. in SMB2_negotiate()
960 server->sec_ntlmssp = true; in SMB2_negotiate()
963 rc = cifs_enable_signing(server, ses->sign); in SMB2_negotiate()
967 rc = decode_negTokenInit(security_blob, blob_length, server); in SMB2_negotiate()
976 rc = smb311_decode_neg_context(rsp, server, in SMB2_negotiate()
993 struct TCP_Server_Info *server = tcon->ses->server; in smb3_validate_negotiate() local
998 if (server->dialect == SMB311_PROT_ID) in smb3_validate_negotiate()
1017 cifs_tcon_dbg(VFS, "Unexpected null user (anonymous) auth flag sent by server\n"); in smb3_validate_negotiate()
1024 cpu_to_le32(server->vals->req_capabilities); in smb3_validate_negotiate()
1025 memcpy(pneg_inbuf->Guid, server->client_guid, in smb3_validate_negotiate()
1038 if (strcmp(server->vals->version_string, in smb3_validate_negotiate()
1046 } else if (strcmp(server->vals->version_string, in smb3_validate_negotiate()
1058 cpu_to_le16(server->vals->protocol_id); in smb3_validate_negotiate()
1071 * Old Windows versions or Netapp SMB server can return in smb3_validate_negotiate()
1074 cifs_tcon_dbg(VFS, "Server does not support validate negotiate\n"); in smb3_validate_negotiate()
1095 if (pneg_rsp->Dialect != cpu_to_le16(server->dialect)) in smb3_validate_negotiate()
1098 if (pneg_rsp->SecurityMode != cpu_to_le16(server->sec_mode)) in smb3_validate_negotiate()
1101 /* do not validate server guid because not saved at negprot time yet */ in smb3_validate_negotiate()
1104 SMB2_LARGE_FILES) != server->capabilities) in smb3_validate_negotiate()
1122 smb2_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) in smb2_select_sectype() argument
1131 if (server->sec_ntlmssp && in smb2_select_sectype()
1134 if ((server->sec_kerberos || server->sec_mskerberos) && in smb2_select_sectype()
1168 struct TCP_Server_Info *server = cifs_ses_server(ses); in SMB2_sess_alloc_buffer() local
1171 rc = smb2_plain_req_init(SMB2_SESSION_SETUP, NULL, server, in SMB2_sess_alloc_buffer()
1197 if (server->sign) in SMB2_sess_alloc_buffer()
1265 struct TCP_Server_Info *server = cifs_ses_server(ses); in SMB2_sess_establish_session() local
1267 mutex_lock(&server->srv_mutex); in SMB2_sess_establish_session()
1268 if (server->ops->generate_signingkey) { in SMB2_sess_establish_session()
1269 rc = server->ops->generate_signingkey(ses); in SMB2_sess_establish_session()
1273 mutex_unlock(&server->srv_mutex); in SMB2_sess_establish_session()
1277 if (!server->session_estab) { in SMB2_sess_establish_session()
1278 server->sequence_number = 0x2; in SMB2_sess_establish_session()
1279 server->session_estab = true; in SMB2_sess_establish_session()
1281 mutex_unlock(&server->srv_mutex); in SMB2_sess_establish_session()
1518 if (ses->server->dialect < SMB30_PROT_ID) { in SMB2_sess_auth_rawntlmssp_authenticate()
1573 struct TCP_Server_Info *server = cifs_ses_server(ses); in SMB2_sess_setup() local
1578 if (!server) { in SMB2_sess_setup()
1579 WARN(1, "%s: server is NULL!\n", __func__); in SMB2_sess_setup()
1597 * Initialize the session hash with the server one. in SMB2_sess_setup()
1599 memcpy(ses->preauth_sha_hash, server->preauth_sha_hash, in SMB2_sess_setup()
1619 struct TCP_Server_Info *server; in SMB2_logoff() local
1628 if (ses && (ses->server)) in SMB2_logoff()
1629 server = ses->server; in SMB2_logoff()
1637 rc = smb2_plain_req_init(SMB2_LOGOFF, NULL, ses->server, in SMB2_logoff()
1647 else if (server->sign) in SMB2_logoff()
1659 rc = cifs_send_recv(xid, ses, ses->server, in SMB2_logoff()
1676 #define MAX_SHARENAME_LENGTH (255 /* server */ + 80 /* share */ + 1 /* NULL */)
1701 struct TCP_Server_Info *server; in SMB2_tcon() local
1704 server = ses->server; in SMB2_tcon()
1708 if (!server || !tree) in SMB2_tcon()
1725 rc = smb2_plain_req_init(SMB2_TREE_CONNECT, tcon, server, in SMB2_tcon()
1751 if ((server->dialect == SMB311_PROT_ID) && in SMB2_tcon()
1765 rc = cifs_send_recv(xid, ses, server, in SMB2_tcon()
1809 !(server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in SMB2_tcon()
1813 if (server->ops->validate_negotiate) in SMB2_tcon()
1814 rc = server->ops->validate_negotiate(xid, tcon); in SMB2_tcon()
1843 if (!ses || !(ses->server)) in SMB2_tdis()
1851 rc = smb2_plain_req_init(SMB2_TREE_DISCONNECT, tcon, ses->server, in SMB2_tdis()
1869 rc = cifs_send_recv(xid, ses, ses->server, in SMB2_tdis()
1973 smb2_parse_contexts(struct TCP_Server_Info *server, in smb2_parse_contexts() argument
2003 *oplock = server->ops->parse_lease_buf(cc, epoch, in smb2_parse_contexts()
2033 add_lease_context(struct TCP_Server_Info *server, struct kvec *iov, in add_lease_context() argument
2039 iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); in add_lease_context()
2042 iov[num].iov_len = server->vals->create_lease_size; in add_lease_context()
2049 server->vals->create_lease_size); in add_lease_context()
2072 * NB: Handle timeout defaults to 0, which allows server to choose in create_durable_v2_buf()
2489 struct TCP_Server_Info *server = cifs_pick_channel(ses); in smb311_posix_mkdir() local
2498 if (!ses || !server) { in smb311_posix_mkdir()
2504 rc = smb2_plain_req_init(SMB2_CREATE, tcon, server, in smb311_posix_mkdir()
2591 rc = cifs_send_recv(xid, ses, server, in smb311_posix_mkdir()
2621 SMB2_open_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_open_init() argument
2635 rc = smb2_plain_req_init(SMB2_CREATE, tcon, server, in SMB2_open_init()
2698 if ((!server->oplocks) || (tcon->no_lease)) in SMB2_open_init()
2701 if (!(server->capabilities & SMB2_GLOBAL_CAP_LEASING) || in SMB2_open_init()
2704 else if (!(server->capabilities & SMB2_GLOBAL_CAP_DIRECTORY_LEASING) && in SMB2_open_init()
2708 rc = add_lease_context(server, iov, &n_iov, in SMB2_open_init()
2716 if (server->capabilities & SMB2_GLOBAL_CAP_LEASING) { in SMB2_open_init()
2720 cpu_to_le32(server->vals->create_lease_size); in SMB2_open_init()
2824 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_open() local
2832 if (!ses || !server) in SMB2_open()
2843 rc = SMB2_open_init(tcon, server, in SMB2_open()
2851 rc = cifs_send_recv(xid, ses, server, in SMB2_open()
2867 pr_warn_once("server share %s deleted\n", in SMB2_open()
2895 smb2_parse_contexts(server, rsp, &oparms->fid->epoch, in SMB2_open()
2904 SMB2_ioctl_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_ioctl_init() argument
2916 rc = smb2_ioctl_req_init(opcode, tcon, server, in SMB2_ioctl_init()
2967 * ioctls it may be useful to allow server to send more. No point in SMB2_ioctl_init()
2968 * limiting what the server can send as long as fits in one credit in SMB2_ioctl_init()
3019 struct TCP_Server_Info *server; in SMB2_ioctl() local
3042 server = cifs_pick_channel(ses); in SMB2_ioctl()
3043 if (!server) in SMB2_ioctl()
3054 rc = SMB2_ioctl_init(tcon, server, in SMB2_ioctl()
3060 rc = cifs_send_recv(xid, ses, server, in SMB2_ioctl()
3093 goto ioctl_exit; /* server returned no data */ in SMB2_ioctl()
3149 SMB2_close_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_close_init() argument
3158 rc = smb2_plain_req_init(SMB2_CLOSE, tcon, server, in SMB2_close_init()
3190 struct TCP_Server_Info *server = cifs_pick_channel(ses); in __SMB2_close() local
3200 if (!ses || !server) in __SMB2_close()
3211 /* check if need to ask server to return timestamps in close response */ in __SMB2_close()
3216 rc = SMB2_close_init(tcon, server, in __SMB2_close()
3222 rc = cifs_send_recv(xid, ses, server, in __SMB2_close()
3291 cifs_dbg(VFS, "Invalid server response, bad offset to data\n"); in smb2_validate_iov()
3323 SMB2_query_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_query_info_init() argument
3334 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, server, in SMB2_query_info_init()
3379 struct TCP_Server_Info *server; in query_info() local
3387 server = cifs_pick_channel(ses); in query_info()
3388 if (!server) in query_info()
3399 rc = SMB2_query_info_init(tcon, server, in query_info()
3409 rc = cifs_send_recv(xid, ses, server, in query_info()
3508 struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_notify_init() argument
3517 rc = smb2_plain_req_init(SMB2_CHANGE_NOTIFY, tcon, server, in SMB2_notify_init()
3545 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_change_notify() local
3554 if (!ses || !server) in SMB2_change_notify()
3565 rc = SMB2_notify_init(xid, &rqst, tcon, server, in SMB2_change_notify()
3573 rc = cifs_send_recv(xid, ses, server, in SMB2_change_notify()
3595 * rather in the fact that the server sent one and that server->lstrp
3603 struct TCP_Server_Info *server = mid->callback_data; in smb2_echo_callback() local
3610 credits.instance = server->reconnect_instance; in smb2_echo_callback()
3614 add_credits(server, &credits, CIFS_ECHO_OP); in smb2_echo_callback()
3619 struct TCP_Server_Info *server = container_of(work, in smb2_reconnect_server() local
3630 mutex_lock(&server->reconnect_mutex); in smb2_reconnect_server()
3636 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_reconnect_server()
3655 * Get the reference to server struct to be sure that the last call of in smb2_reconnect_server()
3656 * cifs_put_tcon() in the loop below won't release the server pointer. in smb2_reconnect_server()
3659 server->srv_count++; in smb2_reconnect_server()
3664 rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon, server); in smb2_reconnect_server()
3678 queue_delayed_work(cifsiod_wq, &server->reconnect, 2 * HZ); in smb2_reconnect_server()
3679 mutex_unlock(&server->reconnect_mutex); in smb2_reconnect_server()
3683 cifs_put_tcp_session(server, 1); in smb2_reconnect_server()
3687 SMB2_echo(struct TCP_Server_Info *server) in SMB2_echo() argument
3698 if (server->tcpStatus == CifsNeedNegotiate) { in SMB2_echo()
3700 mod_delayed_work(cifsiod_wq, &server->reconnect, 0); in SMB2_echo()
3704 rc = smb2_plain_req_init(SMB2_ECHO, NULL, server, in SMB2_echo()
3714 rc = cifs_call_async(server, &rqst, NULL, smb2_echo_callback, NULL, in SMB2_echo()
3715 server, CIFS_ECHO_OP, NULL); in SMB2_echo()
3732 struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_flush_init() argument
3740 rc = smb2_plain_req_init(SMB2_FLUSH, tcon, server, in SMB2_flush_init()
3762 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_flush() local
3768 if (!ses || !(ses->server)) in SMB2_flush()
3779 rc = SMB2_flush_init(xid, &rqst, tcon, server, in SMB2_flush()
3785 rc = cifs_send_recv(xid, ses, server, in SMB2_flush()
3814 struct TCP_Server_Info *server = io_parms->server; in smb2_new_read_req() local
3816 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server, in smb2_new_read_req()
3821 if (server == NULL) in smb2_new_read_req()
3845 if (server->rdma && rdata && !server->sign && in smb2_new_read_req()
3846 rdata->bytes >= server->smbd_conn->rdma_readwrite_threshold) { in smb2_new_read_req()
3849 bool need_invalidate = server->dialect == SMB30_PROT_ID; in smb2_new_read_req()
3852 server->smbd_conn, rdata->pages, in smb2_new_read_req()
3906 struct TCP_Server_Info *server = rdata->server; in smb2_readv_callback() local
3918 WARN_ONCE(rdata->server != mid->server, in smb2_readv_callback()
3919 "rdata server %p != mid server %p", in smb2_readv_callback()
3920 rdata->server, mid->server); in smb2_readv_callback()
3929 credits.instance = server->reconnect_instance; in smb2_readv_callback()
3931 if (server->sign && !mid->decrypted) { in smb2_readv_callback()
3934 rc = smb2_verify_signature(&rqst, server); in smb2_readv_callback()
3946 if (server->sign && rdata->got_bytes) in smb2_readv_callback()
3955 credits.instance = server->reconnect_instance; in smb2_readv_callback()
3985 add_credits(server, &credits, 0); in smb2_readv_callback()
3998 struct TCP_Server_Info *server; in smb2_async_readv() local
4005 if (!rdata->server) in smb2_async_readv()
4006 rdata->server = cifs_pick_channel(tcon->ses); in smb2_async_readv()
4009 io_parms.server = server = rdata->server; in smb2_async_readv()
4035 rc = adjust_credits(server, &rdata->credits, rdata->bytes); in smb2_async_readv()
4043 rc = cifs_call_async(server, &rqst, in smb2_async_readv()
4075 if (!io_parms->server) in SMB2_read()
4076 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_read()
4093 rc = cifs_send_recv(xid, ses, io_parms->server, in SMB2_read()
4150 struct TCP_Server_Info *server = wdata->server; in smb2_writev_callback() local
4155 WARN_ONCE(wdata->server != mid->server, in smb2_writev_callback()
4156 "wdata server %p != mid server %p", in smb2_writev_callback()
4157 wdata->server, mid->server); in smb2_writev_callback()
4162 credits.instance = server->reconnect_instance; in smb2_writev_callback()
4163 wdata->result = smb2_check_receive(mid, server, 0); in smb2_writev_callback()
4170 * by the server is greater than bytes requested by the in smb2_writev_callback()
4188 credits.instance = server->reconnect_instance; in smb2_writev_callback()
4224 add_credits(server, &credits, 0); in smb2_writev_callback()
4236 struct TCP_Server_Info *server = wdata->server; in smb2_async_writev() local
4241 if (!wdata->server) in smb2_async_writev()
4242 server = wdata->server = cifs_pick_channel(tcon->ses); in smb2_async_writev()
4244 rc = smb2_plain_req_init(SMB2_WRITE, tcon, server, in smb2_async_writev()
4269 * If we want to do a server RDMA read, fill in and append in smb2_async_writev()
4272 if (server->rdma && !server->sign && wdata->bytes >= in smb2_async_writev()
4273 server->smbd_conn->rdma_readwrite_threshold) { in smb2_async_writev()
4276 bool need_invalidate = server->dialect == SMB30_PROT_ID; in smb2_async_writev()
4279 server->smbd_conn, wdata->pages, in smb2_async_writev()
4342 rc = adjust_credits(server, &wdata->credits, wdata->bytes); in smb2_async_writev()
4350 rc = cifs_call_async(server, &rqst, NULL, smb2_writev_callback, NULL, in smb2_async_writev()
4384 struct TCP_Server_Info *server; in SMB2_write() local
4391 if (!io_parms->server) in SMB2_write()
4392 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_write()
4393 server = io_parms->server; in SMB2_write()
4394 if (server == NULL) in SMB2_write()
4397 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server, in SMB2_write()
4430 rc = cifs_send_recv(xid, io_parms->tcon->ses, server, in SMB2_write()
4606 struct TCP_Server_Info *server, in SMB2_query_directory_init() argument
4621 rc = smb2_plain_req_init(SMB2_QUERY_DIRECTORY, tcon, server, in SMB2_query_directory_init()
4657 output_size = min_t(unsigned int, output_size, server->maxBuf); in SMB2_query_directory_init()
4765 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_query_directory() local
4768 if (!ses || !(ses->server)) in SMB2_query_directory()
4779 rc = SMB2_query_directory_init(xid, tcon, server, in SMB2_query_directory()
4786 rc = cifs_send_recv(xid, ses, server, in SMB2_query_directory()
4824 SMB2_set_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, in SMB2_set_info_init() argument
4835 rc = smb2_plain_req_init(SMB2_SET_INFO, tcon, server, in SMB2_set_info_init()
4887 struct TCP_Server_Info *server = cifs_pick_channel(ses); in send_set_info() local
4890 if (!ses || !server) in send_set_info()
4907 rc = SMB2_set_info_init(tcon, server, in send_set_info()
4917 rc = cifs_send_recv(xid, ses, server, in send_set_info()
4981 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_oplock_break() local
4989 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, server, in SMB2_oplock_break()
5011 rc = cifs_send_recv(xid, ses, server, in SMB2_oplock_break()
5056 struct TCP_Server_Info *server, in build_qfs_info_req() argument
5066 if ((tcon->ses == NULL) || server == NULL) in build_qfs_info_req()
5069 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, server, in build_qfs_info_req()
5100 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB311_posix_qfs_info() local
5104 rc = build_qfs_info_req(&iov, tcon, server, in SMB311_posix_qfs_info()
5118 rc = cifs_send_recv(xid, ses, server, in SMB311_posix_qfs_info()
5151 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_QFS_info() local
5155 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_info()
5169 rc = cifs_send_recv(xid, ses, server, in SMB2_QFS_info()
5202 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_QFS_attr() local
5223 rc = build_qfs_info_req(&iov, tcon, server, in SMB2_QFS_attr()
5236 rc = cifs_send_recv(xid, ses, server, in SMB2_QFS_attr()
5290 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_lockv() local
5294 rc = smb2_plain_req_init(SMB2_LOCK, tcon, server, in smb2_lockv()
5321 rc = cifs_send_recv(xid, tcon->ses, server, in smb2_lockv()
5367 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in SMB2_lease_break() local
5370 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, server, in SMB2_lease_break()
5394 rc = cifs_send_recv(xid, ses, server, in SMB2_lease_break()