diff options
author | Bjorn Steinbrink <B.Steinbrink@gmx.de> | 2007-06-01 09:47:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-01 17:18:30 +0200 |
commit | 9fcc15ec3c1c287a781a4620e52522b6186f26f6 (patch) | |
tree | 86a0214fc404c0ca6e0ca283c83f22bd15aa2eb4 /lib | |
parent | net/hp100: fix section mismatch warning (diff) | |
download | linux-9fcc15ec3c1c287a781a4620e52522b6186f26f6.tar.xz linux-9fcc15ec3c1c287a781a4620e52522b6186f26f6.zip |
timer statistics: fix race
Fix two races in the timer stats lookup code. One by ensuring that the
initialization of a new entry is finished upon insertion of that entry.
The other by cleaning up the hash table when the entries array is cleared,
so that we don't have any "pre-inserted" entries.
Thanks to Eric Dumazet for reminding me of the memory barriers.
Signed-off-by: Bjorn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Ian Kumlien <pomac@vapor.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Eric Dumazet <dada1@cosmosbay.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions