tcp_ses 2754 fs/cifs/connect.c struct TCP_Server_Info *tcp_ses = NULL; tcp_ses 2760 fs/cifs/connect.c tcp_ses = cifs_find_tcp_session(volume_info); tcp_ses 2761 fs/cifs/connect.c if (tcp_ses) tcp_ses 2762 fs/cifs/connect.c return tcp_ses; tcp_ses 2764 fs/cifs/connect.c tcp_ses = kzalloc(sizeof(struct TCP_Server_Info), GFP_KERNEL); tcp_ses 2765 fs/cifs/connect.c if (!tcp_ses) { tcp_ses 2770 fs/cifs/connect.c tcp_ses->ops = volume_info->ops; tcp_ses 2771 fs/cifs/connect.c tcp_ses->vals = volume_info->vals; tcp_ses 2772 fs/cifs/connect.c cifs_set_net_ns(tcp_ses, get_net(current->nsproxy->net_ns)); tcp_ses 2773 fs/cifs/connect.c tcp_ses->hostname = extract_hostname(volume_info->UNC); tcp_ses 2774 fs/cifs/connect.c if (IS_ERR(tcp_ses->hostname)) { tcp_ses 2775 fs/cifs/connect.c rc = PTR_ERR(tcp_ses->hostname); tcp_ses 2779 fs/cifs/connect.c tcp_ses->noblockcnt = volume_info->rootfs; tcp_ses 2780 fs/cifs/connect.c tcp_ses->noblocksnd = volume_info->noblocksnd || volume_info->rootfs; tcp_ses 2781 fs/cifs/connect.c tcp_ses->noautotune = volume_info->noautotune; tcp_ses 2782 fs/cifs/connect.c tcp_ses->tcp_nodelay = volume_info->sockopt_tcp_nodelay; tcp_ses 2783 fs/cifs/connect.c tcp_ses->rdma = volume_info->rdma; tcp_ses 2784 fs/cifs/connect.c tcp_ses->in_flight = 0; tcp_ses 2785 fs/cifs/connect.c tcp_ses->max_in_flight = 0; tcp_ses 2786 fs/cifs/connect.c tcp_ses->credits = 1; tcp_ses 2787 fs/cifs/connect.c init_waitqueue_head(&tcp_ses->response_q); tcp_ses 2788 fs/cifs/connect.c init_waitqueue_head(&tcp_ses->request_q); tcp_ses 2789 fs/cifs/connect.c INIT_LIST_HEAD(&tcp_ses->pending_mid_q); tcp_ses 2790 fs/cifs/connect.c mutex_init(&tcp_ses->srv_mutex); tcp_ses 2791 fs/cifs/connect.c memcpy(tcp_ses->workstation_RFC1001_name, tcp_ses 2793 fs/cifs/connect.c memcpy(tcp_ses->server_RFC1001_name, tcp_ses 2795 fs/cifs/connect.c tcp_ses->session_estab = false; tcp_ses 2796 fs/cifs/connect.c tcp_ses->sequence_number = 0; tcp_ses 2797 fs/cifs/connect.c tcp_ses->reconnect_instance = 1; tcp_ses 2798 fs/cifs/connect.c tcp_ses->lstrp = jiffies; tcp_ses 2799 fs/cifs/connect.c tcp_ses->compress_algorithm = cpu_to_le16(volume_info->compression); tcp_ses 2800 fs/cifs/connect.c spin_lock_init(&tcp_ses->req_lock); tcp_ses 2801 fs/cifs/connect.c INIT_LIST_HEAD(&tcp_ses->tcp_ses_list); tcp_ses 2802 fs/cifs/connect.c INIT_LIST_HEAD(&tcp_ses->smb_ses_list); tcp_ses 2803 fs/cifs/connect.c INIT_DELAYED_WORK(&tcp_ses->echo, cifs_echo_request); tcp_ses 2804 fs/cifs/connect.c INIT_DELAYED_WORK(&tcp_ses->reconnect, smb2_reconnect_server); tcp_ses 2805 fs/cifs/connect.c mutex_init(&tcp_ses->reconnect_mutex); tcp_ses 2806 fs/cifs/connect.c memcpy(&tcp_ses->srcaddr, &volume_info->srcaddr, tcp_ses 2807 fs/cifs/connect.c sizeof(tcp_ses->srcaddr)); tcp_ses 2808 fs/cifs/connect.c memcpy(&tcp_ses->dstaddr, &volume_info->dstaddr, tcp_ses 2809 fs/cifs/connect.c sizeof(tcp_ses->dstaddr)); tcp_ses 2810 fs/cifs/connect.c generate_random_uuid(tcp_ses->client_guid); tcp_ses 2816 fs/cifs/connect.c tcp_ses->tcpStatus = CifsNew; tcp_ses 2817 fs/cifs/connect.c ++tcp_ses->srv_count; tcp_ses 2821 fs/cifs/connect.c tcp_ses->echo_interval = volume_info->echo_interval * HZ; tcp_ses 2823 fs/cifs/connect.c tcp_ses->echo_interval = SMB_ECHO_INTERVAL_DEFAULT * HZ; tcp_ses 2824 fs/cifs/connect.c if (tcp_ses->rdma) { tcp_ses 2830 fs/cifs/connect.c tcp_ses->smbd_conn = smbd_get_connection( tcp_ses 2831 fs/cifs/connect.c tcp_ses, (struct sockaddr *)&volume_info->dstaddr); tcp_ses 2832 fs/cifs/connect.c if (tcp_ses->smbd_conn) { tcp_ses 2841 fs/cifs/connect.c rc = ip_connect(tcp_ses); tcp_ses 2852 fs/cifs/connect.c tcp_ses->tsk = kthread_run(cifs_demultiplex_thread, tcp_ses 2853 fs/cifs/connect.c tcp_ses, "cifsd"); tcp_ses 2854 fs/cifs/connect.c if (IS_ERR(tcp_ses->tsk)) { tcp_ses 2855 fs/cifs/connect.c rc = PTR_ERR(tcp_ses->tsk); tcp_ses 2860 fs/cifs/connect.c tcp_ses->min_offload = volume_info->min_offload; tcp_ses 2861 fs/cifs/connect.c tcp_ses->tcpStatus = CifsNeedNegotiate; tcp_ses 2863 fs/cifs/connect.c tcp_ses->nr_targets = 1; tcp_ses 2864 fs/cifs/connect.c tcp_ses->ignore_signature = volume_info->ignore_signature; tcp_ses 2867 fs/cifs/connect.c list_add(&tcp_ses->tcp_ses_list, &cifs_tcp_ses_list); tcp_ses 2870 fs/cifs/connect.c cifs_fscache_get_client_cookie(tcp_ses); tcp_ses 2873 fs/cifs/connect.c queue_delayed_work(cifsiod_wq, &tcp_ses->echo, tcp_ses->echo_interval); tcp_ses 2875 fs/cifs/connect.c return tcp_ses; tcp_ses 2878 fs/cifs/connect.c cifs_crypto_secmech_release(tcp_ses); tcp_ses 2880 fs/cifs/connect.c put_net(cifs_net_ns(tcp_ses)); tcp_ses 2883 fs/cifs/connect.c if (tcp_ses) { tcp_ses 2884 fs/cifs/connect.c if (!IS_ERR(tcp_ses->hostname)) tcp_ses 2885 fs/cifs/connect.c kfree(tcp_ses->hostname); tcp_ses 2886 fs/cifs/connect.c if (tcp_ses->ssocket) tcp_ses 2887 fs/cifs/connect.c sock_release(tcp_ses->ssocket); tcp_ses 2888 fs/cifs/connect.c kfree(tcp_ses);