perf: Fix wakeup storm for RO mmap()s
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 20 May 2010 14:21:55 +0000 (16:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 21 May 2010 09:37:58 +0000 (11:37 +0200)
commitadb8e118f288dc4c569ac9a89010b81a4745fbf0
tree40f2bbbe7c59fb4b4a44120fa9cc79822b68e545
parent0e2e63dd608bf5844ffae7bf7d860de18a62724c
perf: Fix wakeup storm for RO mmap()s

RO mmap()s don't update the tail pointer, so
comparing against it for determining the written data
size doesn't really do any good.

Keep track of when we last did a wakeup, and compare
against that.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20100521090710.684479310@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c