linux/include
Al Viro 71f08eb071 perf_event: Switch to internal refcount, fix race with close()
commit a6fa941d94 upstream.

Don't mess with file refcounts (or keep a reference to file, for
that matter) in perf_event.  Use explicit refcount of its own
instead.  Deal with the race between the final reference to event
going away and new children getting created for it by use of
atomic_long_inc_not_zero() in inherit_event(); just have the
latter free what it had allocated and return NULL, that works
out just fine (children of siblings of something doomed are
created as singletons, same as if the child of leader had been
created and immediately killed).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120820135925.GG23464@ZenIV.linux.org.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-02 09:47:24 -07:00
..
acpi
asm-generic
crypto
drm drm/radeon/kms: add new BTC PCI ids 2012-06-10 00:33:04 +09:00
keys
linux perf_event: Switch to internal refcount, fix race with close() 2012-10-02 09:47:24 -07:00
math-emu
media
mtd
net tcp: Apply device TSO segment limit earlier 2012-10-02 09:47:04 -07:00
pcmcia
rdma
rxrpc
scsi
sound
target
trace random: add tracepoints for easier debugging and verification 2012-08-15 12:04:13 -07:00
video
xen
Kbuild