Lines Matching defs:lsmc

1726 static int smc_clcsock_accept(struct smc_sock *lsmc, struct smc_sock **new_smc)
1729 struct sock *lsk = &lsmc->sk;
1744 mutex_lock(&lsmc->clcsock_release_lock);
1745 if (lsmc->clcsock)
1746 rc = kernel_accept(lsmc->clcsock, &new_clcsock, SOCK_NONBLOCK);
1747 mutex_unlock(&lsmc->clcsock_release_lock);
1765 new_clcsock->sk->sk_data_ready = lsmc->clcsk_data_ready;
1770 if (lsmc->use_fallback) {
1771 if (lsmc->clcsk_state_change)
1772 new_clcsock->sk->sk_state_change = lsmc->clcsk_state_change;
1773 if (lsmc->clcsk_write_space)
1774 new_clcsock->sk->sk_write_space = lsmc->clcsk_write_space;
1775 if (lsmc->clcsk_error_report)
1776 new_clcsock->sk->sk_error_report = lsmc->clcsk_error_report;
1916 struct smc_sock *lsmc = new_smc->listen_smc;
1920 atomic_dec(&lsmc->queued_smc_hs);
1923 if (lsmc->sk.sk_state == SMC_LISTEN) {
1924 lock_sock_nested(&lsmc->sk, SINGLE_DEPTH_NESTING);
1925 smc_accept_enqueue(&lsmc->sk, newsmcsk);
1926 release_sock(&lsmc->sk);
1932 lsmc->sk.sk_data_ready(&lsmc->sk);
1933 sock_put(&lsmc->sk); /* sock_hold in smc_tcp_listen_work */
2585 struct smc_sock *lsmc = container_of(work, struct smc_sock,
2587 struct sock *lsk = &lsmc->sk;
2593 rc = smc_clcsock_accept(lsmc, &new_smc);
2600 atomic_inc(&lsmc->queued_smc_hs);
2602 new_smc->listen_smc = lsmc;
2603 new_smc->use_fallback = lsmc->use_fallback;
2604 new_smc->fallback_rsn = lsmc->fallback_rsn;
2615 sock_put(&lsmc->sk); /* sock_hold in smc_clcsock_data_ready() */
2620 struct smc_sock *lsmc;
2623 lsmc = smc_clcsock_user_data(listen_clcsock);
2624 if (!lsmc)
2626 lsmc->clcsk_data_ready(listen_clcsock);
2627 if (lsmc->sk.sk_state == SMC_LISTEN) {
2628 sock_hold(&lsmc->sk); /* sock_put in smc_tcp_listen_work() */
2629 if (!queue_work(smc_tcp_ls_wq, &lsmc->tcp_listen_work))
2630 sock_put(&lsmc->sk);
2706 struct smc_sock *lsmc;
2710 lsmc = smc_sk(sk);
2714 if (lsmc->sk.sk_state != SMC_LISTEN) {
2748 if (lsmc->sockopt_defer_accept && !(arg->flags & O_NONBLOCK)) {
2750 timeo = secs_to_jiffies(lsmc->sockopt_defer_accept);