Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

From: Peter Zijlstra
Date: Fri May 12 2017 - 15:50:13 EST


On Fri, May 12, 2017 at 01:15:44PM -0400, Steven Rostedt wrote:
> 2) Allow for get_online_cpus() to nest

So Thomas and me have been avoiding doing this.

In general we avoid nested locking in the kernel. Nested locking makes
an absolute mockery of locking rules and what all gets protected.

Yes, its much easier.. But we managed to kill the BKL, so surely we can
fix the hotplug lock too, right ;-)