]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix inet_twsk_deschedule()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 18 Feb 2011 22:35:56 +0000 (22:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Feb 2011 02:59:04 +0000 (18:59 -0800)
commit716dfa703894b8c8c014731937d73cdf065cbd3c
treee15aeadf32b4e4c2874c72be0100dbe0f222f84a
parentfdb84f87a66add3954bc864d8e8ea0dc5e019d57
tcp: fix inet_twsk_deschedule()

Eric W. Biederman reported a lockdep splat in inet_twsk_deschedule()

This is caused by inet_twsk_purge(), run from process context,
and commit 3bae80a163f3ac1279 (net: Use rcu lookups in inet_twsk_purge.)
removed the BH disabling that was necessary.

Add the BH disabling but fine grained, right before calling
inet_twsk_deschedule(), instead of whole function.

With help from Linus Torvalds and Eric W. Biederman

Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Daniel Lezcano <daniel.lezcano@free.fr>
CC: Pavel Emelyanov <xemul@openvz.org>
CC: Arnaldo Carvalho de Melo <acme@redhat.com>
CC: stable <stable@kernel.org> (# 2.6.33+)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_timewait_sock.c