diff options
author | Zhu Yi <yi.zhu@intel.com> | 2010-03-04 18:01:44 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-05 13:34:01 -0800 |
commit | 50b1a782f845140f4138f14a1ce8a4a6dd0cc82f (patch) | |
tree | 3cb1df5d01fb46ca4fef4146dc50eb455643e252 /net/sctp/socket.c | |
parent | 79545b681961d7001c1f4c3eb9ffb87bed4485db (diff) | |
download | lwn-50b1a782f845140f4138f14a1ce8a4a6dd0cc82f.tar.gz lwn-50b1a782f845140f4138f14a1ce8a4a6dd0cc82f.zip |
sctp: use limited socket backlog
Make sctp adapt to the limited socket backlog change.
Cc: Vlad Yasevich <vladislav.yasevich@hp.com>
Cc: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index f6d1e59c4151..dfc5c127efd4 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -3720,6 +3720,9 @@ SCTP_STATIC int sctp_init_sock(struct sock *sk) SCTP_DBG_OBJCNT_INC(sock); percpu_counter_inc(&sctp_sockets_allocated); + /* Set socket backlog limit. */ + sk->sk_backlog.limit = sysctl_sctp_rmem[1]; + local_bh_disable(); sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); local_bh_enable(); |