aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2012-08-20 14:59:25 +0100
committerBen Hutchings <ben@decadent.org.uk>2012-09-19 15:05:06 +0100
commitf8112ffff6bacaad4fcdf144fee23d1b1be74f9a (patch)
treede838b872f67789fc70ebf8ec66c2452f16dfb24 /fs/nfs/inode.c
parent0112e26a6a0f374041033fb5472f01db2658ac51 (diff)
downloadkernel_samsung_smdk4412-f8112ffff6bacaad4fcdf144fee23d1b1be74f9a.zip
kernel_samsung_smdk4412-f8112ffff6bacaad4fcdf144fee23d1b1be74f9a.tar.gz
kernel_samsung_smdk4412-f8112ffff6bacaad4fcdf144fee23d1b1be74f9a.tar.bz2
perf_event: Switch to internal refcount, fix race with close()
commit a6fa941d94b411bbd2b6421ffbde6db3c93e65ab 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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/nfs/inode.c')
0 files changed, 0 insertions, 0 deletions