Re: [PATCH 1/2] locking/lockdep: Add support for dynamic depmaps and keys

2018-11-19 Thread Bart Van Assche
On Sat, 2018-11-10 at 14:55 +0100, Peter Zijlstra wrote: > On Fri, Nov 09, 2018 at 03:46:44PM -0800, Bart Van Assche wrote: > > The lock validator forces to categorize multiple instances of a lock object > > as the same lock class because it requires that struct lockdep_map and > > struct > > lock

Re: [PATCH 1/2] locking/lockdep: Add support for dynamic depmaps and keys

2018-11-10 Thread Peter Zijlstra
On Fri, Nov 09, 2018 at 03:46:44PM -0800, Bart Van Assche wrote: > The lock validator forces to categorize multiple instances of a lock object > as the same lock class because it requires that struct lockdep_map and struct > lock_class_key instances are static objects. This can result in false > po

[PATCH 1/2] locking/lockdep: Add support for dynamic depmaps and keys

2018-11-09 Thread Bart Van Assche
The lock validator forces to categorize multiple instances of a lock object as the same lock class because it requires that struct lockdep_map and struct lock_class_key instances are static objects. This can result in false positive lockdep reports that are hard to suppress in an elegant way. Hence