Lines Matching refs:lsmc
1708 static int smc_clcsock_accept(struct smc_sock *lsmc, struct smc_sock **new_smc) in smc_clcsock_accept() argument
1711 struct sock *lsk = &lsmc->sk; in smc_clcsock_accept()
1726 mutex_lock(&lsmc->clcsock_release_lock); in smc_clcsock_accept()
1727 if (lsmc->clcsock) in smc_clcsock_accept()
1728 rc = kernel_accept(lsmc->clcsock, &new_clcsock, SOCK_NONBLOCK); in smc_clcsock_accept()
1729 mutex_unlock(&lsmc->clcsock_release_lock); in smc_clcsock_accept()
1747 new_clcsock->sk->sk_data_ready = lsmc->clcsk_data_ready; in smc_clcsock_accept()
1752 if (lsmc->use_fallback) { in smc_clcsock_accept()
1753 if (lsmc->clcsk_state_change) in smc_clcsock_accept()
1754 new_clcsock->sk->sk_state_change = lsmc->clcsk_state_change; in smc_clcsock_accept()
1755 if (lsmc->clcsk_write_space) in smc_clcsock_accept()
1756 new_clcsock->sk->sk_write_space = lsmc->clcsk_write_space; in smc_clcsock_accept()
1757 if (lsmc->clcsk_error_report) in smc_clcsock_accept()
1758 new_clcsock->sk->sk_error_report = lsmc->clcsk_error_report; in smc_clcsock_accept()
1898 struct smc_sock *lsmc = new_smc->listen_smc; in smc_listen_out() local
1902 atomic_dec(&lsmc->queued_smc_hs); in smc_listen_out()
1904 if (lsmc->sk.sk_state == SMC_LISTEN) { in smc_listen_out()
1905 lock_sock_nested(&lsmc->sk, SINGLE_DEPTH_NESTING); in smc_listen_out()
1906 smc_accept_enqueue(&lsmc->sk, newsmcsk); in smc_listen_out()
1907 release_sock(&lsmc->sk); in smc_listen_out()
1913 lsmc->sk.sk_data_ready(&lsmc->sk); in smc_listen_out()
1914 sock_put(&lsmc->sk); /* sock_hold in smc_tcp_listen_work */ in smc_listen_out()
2558 struct smc_sock *lsmc = container_of(work, struct smc_sock, in smc_tcp_listen_work() local
2560 struct sock *lsk = &lsmc->sk; in smc_tcp_listen_work()
2566 rc = smc_clcsock_accept(lsmc, &new_smc); in smc_tcp_listen_work()
2573 atomic_inc(&lsmc->queued_smc_hs); in smc_tcp_listen_work()
2575 new_smc->listen_smc = lsmc; in smc_tcp_listen_work()
2576 new_smc->use_fallback = lsmc->use_fallback; in smc_tcp_listen_work()
2577 new_smc->fallback_rsn = lsmc->fallback_rsn; in smc_tcp_listen_work()
2588 sock_put(&lsmc->sk); /* sock_hold in smc_clcsock_data_ready() */ in smc_tcp_listen_work()
2593 struct smc_sock *lsmc; in smc_clcsock_data_ready() local
2596 lsmc = smc_clcsock_user_data(listen_clcsock); in smc_clcsock_data_ready()
2597 if (!lsmc) in smc_clcsock_data_ready()
2599 lsmc->clcsk_data_ready(listen_clcsock); in smc_clcsock_data_ready()
2600 if (lsmc->sk.sk_state == SMC_LISTEN) { in smc_clcsock_data_ready()
2601 sock_hold(&lsmc->sk); /* sock_put in smc_tcp_listen_work() */ in smc_clcsock_data_ready()
2602 if (!queue_work(smc_tcp_ls_wq, &lsmc->tcp_listen_work)) in smc_clcsock_data_ready()
2603 sock_put(&lsmc->sk); in smc_clcsock_data_ready()
2679 struct smc_sock *lsmc; in smc_accept() local
2683 lsmc = smc_sk(sk); in smc_accept()
2687 if (lsmc->sk.sk_state != SMC_LISTEN) { in smc_accept()
2721 if (lsmc->sockopt_defer_accept && !(arg->flags & O_NONBLOCK)) { in smc_accept()
2723 timeo = msecs_to_jiffies(lsmc->sockopt_defer_accept * in smc_accept()