diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-04-19 03:39:17 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-04-19 03:39:17 +0000 |
commit | 9d2c18dc08edb6d158bd2b49851f740bc52ebf0f (patch) | |
tree | 9c59d56ce9e47694231bccdece054e63155e17d8 /sys | |
parent | 4eae976a6a94001a26e9b7347d542ccfde88d852 (diff) | |
download | FreeBSD-src-9d2c18dc08edb6d158bd2b49851f740bc52ebf0f.zip FreeBSD-src-9d2c18dc08edb6d158bd2b49851f740bc52ebf0f.tar.gz |
move tcbinfo lock acquisition in to syncache
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index f54c6c9..4bb7bcb 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -1422,6 +1422,9 @@ syncache_offload_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, struct inpcb *inp, struct socket **lsop, struct toe_usrreqs *tu, void *toepcb) { + + INP_INFO_WLOCK(&tcbinfo); + INP_WLOCK(inp); _syncache_add(inc, to, th, inp, lsop, NULL, tu, toepcb); } |