Re: [PATCH RFC] net/socket: use per af lockdep classes for sk queues

2017-02-24 Thread Cong Wang
On Fri, Feb 24, 2017 at 5:29 AM, Paolo Abeni wrote: > Currently the sock queue's spin locks get their lockdep > classes by the default init_spin_lock() initializer: > all socket families get - usually, see below - a single > class for rx, another specific class for tx, etc. > This can lead to fals

Re: [PATCH RFC] net/socket: use per af lockdep classes for sk queues

2017-02-24 Thread Eric Dumazet
On Fri, 2017-02-24 at 14:29 +0100, Paolo Abeni wrote: > Currently the sock queue's spin locks get their lockdep > classes by the default init_spin_lock() initializer: > all socket families get - usually, see below - a single > class for rx, another specific class for tx, etc. > This can lead to fal

[PATCH RFC] net/socket: use per af lockdep classes for sk queues

2017-02-24 Thread Paolo Abeni
Currently the sock queue's spin locks get their lockdep classes by the default init_spin_lock() initializer: all socket families get - usually, see below - a single class for rx, another specific class for tx, etc. This can lead to false positive lockdep splat, as reported by Andrey. Moreover there