Searched refs:s_listen (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_receiver.c657 struct socket *s_listen; member in struct:accept_wait_data
678 struct socket *s_listen; prepare_listen_socket() local
697 SOCK_STREAM, IPPROTO_TCP, &s_listen); prepare_listen_socket()
699 s_listen = NULL; prepare_listen_socket()
703 s_listen->sk->sk_reuse = SK_CAN_REUSE; /* SO_REUSEADDR */ prepare_listen_socket()
704 drbd_setbufsize(s_listen, sndbuf_size, rcvbuf_size); prepare_listen_socket()
707 err = s_listen->ops->bind(s_listen, (struct sockaddr *)&my_addr, my_addr_len); prepare_listen_socket()
711 ad->s_listen = s_listen; prepare_listen_socket()
712 write_lock_bh(&s_listen->sk->sk_callback_lock); prepare_listen_socket()
713 ad->original_sk_state_change = s_listen->sk->sk_state_change; prepare_listen_socket()
714 s_listen->sk->sk_state_change = drbd_incoming_connection; prepare_listen_socket()
715 s_listen->sk->sk_user_data = ad; prepare_listen_socket()
716 write_unlock_bh(&s_listen->sk->sk_callback_lock); prepare_listen_socket()
719 err = s_listen->ops->listen(s_listen, 5); prepare_listen_socket()
725 if (s_listen) prepare_listen_socket()
726 sock_release(s_listen); prepare_listen_socket()
768 err = kernel_accept(ad->s_listen, &s_estab, 0); drbd_wait_for_connect()
1002 if (ad.s_listen) conn_connect()
1003 sock_release(ad.s_listen); conn_connect()
1114 if (ad.s_listen) conn_connect()
1115 sock_release(ad.s_listen); conn_connect()

Completed in 75 milliseconds