Lines Matching refs:lsmc

1720 static int smc_clcsock_accept(struct smc_sock *lsmc, struct smc_sock **new_smc)
1723 struct sock *lsk = &lsmc->sk;
1738 mutex_lock(&lsmc->clcsock_release_lock);
1739 if (lsmc->clcsock)
1740 rc = kernel_accept(lsmc->clcsock, &new_clcsock, SOCK_NONBLOCK);
1741 mutex_unlock(&lsmc->clcsock_release_lock);
1759 new_clcsock->sk->sk_data_ready = lsmc->clcsk_data_ready;
1764 if (lsmc->use_fallback) {
1765 if (lsmc->clcsk_state_change)
1766 new_clcsock->sk->sk_state_change = lsmc->clcsk_state_change;
1767 if (lsmc->clcsk_write_space)
1768 new_clcsock->sk->sk_write_space = lsmc->clcsk_write_space;
1769 if (lsmc->clcsk_error_report)
1770 new_clcsock->sk->sk_error_report = lsmc->clcsk_error_report;
1910 struct smc_sock *lsmc = new_smc->listen_smc;
1914 atomic_dec(&lsmc->queued_smc_hs);
1916 if (lsmc->sk.sk_state == SMC_LISTEN) {
1917 lock_sock_nested(&lsmc->sk, SINGLE_DEPTH_NESTING);
1918 smc_accept_enqueue(&lsmc->sk, newsmcsk);
1919 release_sock(&lsmc->sk);
1925 lsmc->sk.sk_data_ready(&lsmc->sk);
1926 sock_put(&lsmc->sk); /* sock_hold in smc_tcp_listen_work */
2537 struct smc_sock *lsmc = container_of(work, struct smc_sock,
2539 struct sock *lsk = &lsmc->sk;
2545 rc = smc_clcsock_accept(lsmc, &new_smc);
2552 atomic_inc(&lsmc->queued_smc_hs);
2554 new_smc->listen_smc = lsmc;
2555 new_smc->use_fallback = lsmc->use_fallback;
2556 new_smc->fallback_rsn = lsmc->fallback_rsn;
2567 sock_put(&lsmc->sk); /* sock_hold in smc_clcsock_data_ready() */
2572 struct smc_sock *lsmc;
2575 lsmc = smc_clcsock_user_data(listen_clcsock);
2576 if (!lsmc)
2578 lsmc->clcsk_data_ready(listen_clcsock);
2579 if (lsmc->sk.sk_state == SMC_LISTEN) {
2580 sock_hold(&lsmc->sk); /* sock_put in smc_tcp_listen_work() */
2581 if (!queue_work(smc_tcp_ls_wq, &lsmc->tcp_listen_work))
2582 sock_put(&lsmc->sk);
2658 struct smc_sock *lsmc;
2662 lsmc = smc_sk(sk);
2666 if (lsmc->sk.sk_state != SMC_LISTEN) {
2700 if (lsmc->sockopt_defer_accept && !(flags & O_NONBLOCK)) {
2702 timeo = msecs_to_jiffies(lsmc->sockopt_defer_accept *