X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fipvs%2Fip_vs_proto_tcp.c;h=e65de675da74b57e1ab01332a8daa438ea8190a7;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=bd8f898bfe197a6c9c61b5003ceb6719d6dbcde0;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/ipv4/ipvs/ip_vs_proto_tcp.c b/net/ipv4/ipvs/ip_vs_proto_tcp.c index bd8f898bf..e65de675d 100644 --- a/net/ipv4/ipvs/ip_vs_proto_tcp.c +++ b/net/ipv4/ipvs/ip_vs_proto_tcp.c @@ -510,7 +510,7 @@ tcp_state_transition(struct ip_vs_conn *cp, int direction, #define TCP_APP_TAB_MASK (TCP_APP_TAB_SIZE - 1) static struct list_head tcp_apps[TCP_APP_TAB_SIZE]; -static spinlock_t tcp_app_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(tcp_app_lock); static inline __u16 tcp_app_hashkey(__u16 port) {