Files
linux-st/include/net
Eric Dumazet 8a74ad60a5 net: fix lock_sock_bh/unlock_sock_bh
This new sock lock primitive was introduced to speedup some user context
socket manipulation. But it is unsafe to protect two threads, one using
regular lock_sock/release_sock, one using lock_sock_bh/unlock_sock_bh

This patch changes lock_sock_bh to be careful against 'owned' state.
If owned is found to be set, we must take the slow path.
lock_sock_bh() now returns a boolean to say if the slow path was taken,
and this boolean is used at unlock_sock_bh time to call the appropriate
unlock function.

After this change, BH are either disabled or enabled during the
lock_sock_bh/unlock_sock_bh protected section. This might be misleading,
so we rename these functions to lock_sock_fast()/unlock_sock_fast().

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-27 00:30:53 -07:00
..
2010-01-07 00:24:55 -08:00
2010-05-12 23:02:23 -07:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2010-05-17 22:36:55 -07:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2009-11-13 20:46:58 -08:00
2010-04-13 01:41:33 -07:00
2009-11-04 05:06:25 -08:00
2010-04-23 23:35:29 -07:00
2009-12-26 20:46:28 -08:00
2010-03-12 15:52:40 -08:00
2009-11-20 15:35:04 -08:00
2010-04-01 18:38:48 -07:00
2010-04-13 14:49:34 -07:00
2009-11-04 05:06:25 -08:00
2010-05-17 17:18:51 -07:00
2010-04-01 18:38:48 -07:00
2009-11-04 05:06:25 -08:00
2010-04-22 16:00:00 -07:00
2010-05-27 00:30:53 -07:00
2009-11-10 20:54:38 -08:00