diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-14 09:55:35 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-21 23:19:29 (GMT) |
commit | 989a2979205dd34269382b357e6d4b4b6956b889 (patch) | |
tree | 2f504e9f4d8d418dd8fb2d042b076c1318232360 /fs/ceph/snap.c | |
parent | e5700aff144fbbba46be40049f0c55fb57283777 (diff) | |
download | linux-989a2979205dd34269382b357e6d4b4b6956b889.tar.xz |
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 'fs/ceph/snap.c')
0 files changed, 0 insertions, 0 deletions