diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-14 11:55:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-22 01:19:29 +0200 |
commit | 989a2979205dd34269382b357e6d4b4b6956b889 (patch) | |
tree | 2f504e9f4d8d418dd8fb2d042b076c1318232360 /net/rxrpc | |
parent | tcp: Mark v6 response packets as CHECKSUM_PARTIAL (diff) | |
download | linux-989a2979205dd34269382b357e6d4b4b6956b889.tar.xz linux-989a2979205dd34269382b357e6d4b4b6956b889.zip |
fasync: RCU and fine grained locking
kill_fasync() uses a central rwlock, candidate for RCU conversion, to
avoid cache line ping pongs on SMP.
fasync_remove_entry() and fasync_add_entry() can disable IRQS on a short
section instead during whole list scan.
Use a spinlock per fasync_struct to synchronize kill_fasync_rcu() and
fasync_{remove|add}_entry(). This spinlock is IRQ safe, so sock_fasync()
doesnt need its own implementation and can use fasync_helper(), to
reduce code size and complexity.
We can remove __kill_fasync() direct use in net/socket.c, and rename it
to kill_fasync_rcu().
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions