kill lockhelp for rtsp - missing ip_conntrack_rtsp.c
Subsystems (2)
PATCH 1/1 kill lockhelp for rtsp - missing ip_conntrack_rtsp.c
Hi,ip_conntrack_rtsp.c is still using lockhelp.h
Sorry to have split this in two parts.
btw, Harald, should i repost patches for fixing the missing lockhelp.h with creating a new directory 'linux-2.6.13' in extension ? :
rtsp-conntrack
- linux
- linux-2.6.11 ( reverse changes )
- linux-2.6.13 ( a copy of linux-2.6.11 + fix lockhelp.h )
regards,
Samir Bellabes
[NETFILTER] kill lockhelp.h - missing fixes
------------------------------------------------------------------------------
ip_conntrack_rtsp.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
------------------------------------------------------------------------------
net/ipv4/netfilter/ip_conntrack_rtsp.c +3 -4
@@ -31,7 +31,6 @@#include <net/checksum.h> #include <net/tcp.h> -#include <linux/netfilter_ipv4/lockhelp.h> #include <linux/netfilter_ipv4/ip_conntrack_helper.h> #include <linux/netfilter_ipv4/ip_conntrack_rtsp.h>
@@ -70,7 +69,7 @@MODULE_PARM_DESC (setup_timeout,"timeout on for unestablished data channels" );static char rtsp_buffer[65536 ]; -static DECLARE_LOCK (rtsp_buffer_lock); +static DEFINE_SPINLOCK (rtsp_buffer_lock); unsigned int (*ip_nat_rtsp_hook)(struct sk_buff **pskb, enum ip_conntrack_info ctinfo,
@@ -415,7 +414,7 @@if (dataoff >= (*pskb)->len)return NF_ACCEPT ; -LOCK_BH (&rtsp_buffer_lock); +spin_lock_bh (&rtsp_buffer_lock); rb_ptr =skb_header_pointer (*pskb, dataoff, (*pskb)->len - dataoff, rtsp_buffer);BUG_ON (rb_ptr ==NULL );
@@ -443,7 +442,7 @@break ; } -UNLOCK_BH (&rtsp_buffer_lock); +spin_unlock_bh (&rtsp_buffer_lock);return ret; }