Re: [PATCH 02/28] locking/lockdep: Add description and explanation in lockdep design doc

From: Peter Zijlstra
Date: Thu Apr 25 2019 - 10:01:19 EST


On Wed, Apr 24, 2019 at 06:19:08PM +0800, Yuyang Du wrote:
> +Unlike a lock instance, a lock-class itself never goes away: when a
> +lock-class's instance is used for the first time after bootup the class gets
> +registered, and all (subsequent) instances of that lock-class will be mapped
> +to the lock-class.

That's not entirely accurate anymore. Bart van Assche recently added
lockdep_{,un}register_key().