diff options
author | Peter Zijlstra <[email protected]> | 2014-09-30 19:23:08 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-10-03 05:41:06 +0200 |
commit | 211de6eba8960521e2be450a7d07db85fba4604c (patch) | |
tree | 8906de527a99e671d03f6f9fc0b4a11eac892a62 /net/lapb/lapb_subr.c | |
parent | fe82dcec644244676d55a1384c958d5f67979adb (diff) |
perf: Fix unclone_ctx() vs. locking
The idiot who did 4a1c0f262f88 ("perf: Fix lockdep warning on process exit")
forgot to pay attention and fix all similar cases. Do so now.
In particular, unclone_ctx() must be called while holding ctx->lock,
therefore all such sites are broken for the same reason. Pull the
put_ctx() call out from under ctx->lock.
Reported-by: Sasha Levin <[email protected]>
Probably-also-reported-by: Vince Weaver <[email protected]>
Fixes: 4a1c0f262f88 ("perf: Fix lockdep warning on process exit")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Cong Wang <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions