diff options
| author | Eric Dumazet <[email protected]> | 2010-04-14 09:55:35 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-04-21 16:19:29 -0700 |
| commit | 989a2979205dd34269382b357e6d4b4b6956b889 (patch) | |
| tree | 2f504e9f4d8d418dd8fb2d042b076c1318232360 /tools/perf/scripts/python/syscall-counts.py | |
| parent | e5700aff144fbbba46be40049f0c55fb57283777 (diff) | |
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 <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions