Re: [Patch v2] perf_event: fix a race condition in perf_remove_from_context()

2014-09-03 Thread Peter Zijlstra
On Tue, Sep 02, 2014 at 03:27:20PM -0700, Cong Wang wrote: > From: Cong Wang > > We saw a kernel soft lockup in perf_remove_from_context(), > it looks like the `perf` process, when exiting, could not go > out of the retry loop. Meanwhile, the target process was forking > a child. So either the ta

[Patch v2] perf_event: fix a race condition in perf_remove_from_context()

2014-09-02 Thread Cong Wang
From: Cong Wang We saw a kernel soft lockup in perf_remove_from_context(), it looks like the `perf` process, when exiting, could not go out of the retry loop. Meanwhile, the target process was forking a child. So either the target process should execute the smp function call to deactive the event