2 May 2004 05:40
[PATCH] fine grain locking for tcp helper
Pablo Neira <pablo <at> eurodev.net>
2004-05-02 03:40:41 GMT
2004-05-02 03:40:41 GMT
Hi, This patch provides a fine-grain locking for the tcp helper in conntrack. A per-conntrack lock is used, instead of having a global lock to protect tcp specific data. If I'm missing something, please let me know. regards, Pablo
--- linux-2.6.3-old/net/ipv4/netfilter/ip_conntrack_proto_tcp.c 2004-05-02
04:19:30.000000000 +0200
+++ linux-2.6.3/net/ipv4/netfilter/ip_conntrack_proto_tcp.c 2004-05-02 04:18:18.000000000 +0200
<at> <at> -28,9 +28,6 <at> <at>
#define DEBUGP(format, args...)
#endif
-/* Protects conntrack->proto.tcp */
-static DECLARE_RWLOCK(tcp_lock);
-
/* FIXME: Examine ipfilter's timeouts and conntrack transitions more
closely. They're more complex. --RR */
<at> <at> -151,9 +148,9 <at> <at>
{
enum tcp_conntrack state;
- READ_LOCK(&tcp_lock);
+ READ_LOCK(&conntrack->proto.tcp.lock);
state = conntrack->proto.tcp.state;
(Continue reading)
Best regards,
Jozsef
-
E-mail : kadlec <at> blackhole.kfki.hu, kadlec <at> sunserv.kfki.hu
PGP key :
Sorry!
regards,
Pablo
RSS Feed