• Peter Zijlstra's avatar
    perf: Fix wakeup storm for RO mmap()s · adb8e118
    Peter Zijlstra authored
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@elte.hu>
    adb8e118
perf_event.c 131 KB