Re: [PATCH 02/17] locking: Add split_lock

2021-04-12 Thread Thomas Gleixner
On Mon, Apr 12 2021 at 15:45, Matthew Wilcox wrote: > On Mon, Apr 12, 2021 at 04:29:28PM +0200, Thomas Gleixner wrote: >> On Fri, Apr 09 2021 at 03:51, Matthew Wilcox wrote: >> > Bitlocks do not currently participate in lockdep. Conceptually, a >> > bit_spinlock is a split lock, eg across each buc

Re: [PATCH 02/17] locking: Add split_lock

2021-04-12 Thread Matthew Wilcox
On Mon, Apr 12, 2021 at 04:29:28PM +0200, Thomas Gleixner wrote: > On Fri, Apr 09 2021 at 03:51, Matthew Wilcox wrote: > > Bitlocks do not currently participate in lockdep. Conceptually, a > > bit_spinlock is a split lock, eg across each bucket in a hash table. > > The struct split_lock gives us s

Re: [PATCH 02/17] locking: Add split_lock

2021-04-12 Thread Thomas Gleixner
On Fri, Apr 09 2021 at 03:51, Matthew Wilcox wrote: > Bitlocks do not currently participate in lockdep. Conceptually, a > bit_spinlock is a split lock, eg across each bucket in a hash table. > The struct split_lock gives us somewhere to record the lockdep_map. I like the concept, but the name is

[PATCH 02/17] locking: Add split_lock

2021-04-08 Thread Matthew Wilcox (Oracle)
Bitlocks do not currently participate in lockdep. Conceptually, a bit_spinlock is a split lock, eg across each bucket in a hash table. The struct split_lock gives us somewhere to record the lockdep_map. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/split_lock.h | 37 +