Re: [PATCH] perf: drop module reference on event init failure

2015-01-16 Thread Peter Zijlstra
On Fri, Jan 16, 2015 at 12:26:03PM +, Mark Rutland wrote: > On Wed, Jan 07, 2015 at 02:56:51PM +, Mark Rutland wrote: > > When initialising an event, perf_init_event will call try_module_get to > > ensure that the PMU's module cannot be removed for the lifetime of the > > event, with __free

Re: [PATCH] perf: drop module reference on event init failure

2015-01-16 Thread Mark Rutland
On Wed, Jan 07, 2015 at 02:56:51PM +, Mark Rutland wrote: > When initialising an event, perf_init_event will call try_module_get to > ensure that the PMU's module cannot be removed for the lifetime of the > event, with __free_event dropping the reference when the event is > finally destroyed. I

Re: [PATCH] perf: drop module reference on event init failure

2015-01-08 Thread Mark Rutland
On Thu, Jan 08, 2015 at 11:32:13AM +, Will Deacon wrote: > On Wed, Jan 07, 2015 at 02:56:51PM +, Mark Rutland wrote: > > When initialising an event, perf_init_event will call try_module_get to > > ensure that the PMU's module cannot be removed for the lifetime of the > > event, with __free_

Re: [PATCH] perf: drop module reference on event init failure

2015-01-08 Thread Will Deacon
On Wed, Jan 07, 2015 at 02:56:51PM +, Mark Rutland wrote: > When initialising an event, perf_init_event will call try_module_get to > ensure that the PMU's module cannot be removed for the lifetime of the > event, with __free_event dropping the reference when the event is > finally destroyed. I

[PATCH] perf: drop module reference on event init failure

2015-01-07 Thread Mark Rutland
When initialising an event, perf_init_event will call try_module_get to ensure that the PMU's module cannot be removed for the lifetime of the event, with __free_event dropping the reference when the event is finally destroyed. If something fails after the event has been initialised, but before the