Re: [RFC PATCH net] bonding: Work around lockdep_is_held false positives

2021-03-23 Thread Maxim Mikityanskiy
On 2021-03-23 19:56, Jay Vosburgh wrote: Maxim Mikityanskiy wrote: On 2021-03-22 16:09, Leon Romanovsky wrote: On Mon, Mar 22, 2021 at 02:38:46PM +0200, Maxim Mikityanskiy wrote: After lockdep gets triggered for the first time, it gets disabled, and lockdep_enabled() will return false. It wi

Re: [RFC PATCH net] bonding: Work around lockdep_is_held false positives

2021-03-23 Thread Jay Vosburgh
Maxim Mikityanskiy wrote: >On 2021-03-22 16:09, Leon Romanovsky wrote: >> On Mon, Mar 22, 2021 at 02:38:46PM +0200, Maxim Mikityanskiy wrote: >>> After lockdep gets triggered for the first time, it gets disabled, and >>> lockdep_enabled() will return false. It will affect lockdep_is_held(), >>> w

Re: [RFC PATCH net] bonding: Work around lockdep_is_held false positives

2021-03-23 Thread Maxim Mikityanskiy
On 2021-03-22 16:09, Leon Romanovsky wrote: On Mon, Mar 22, 2021 at 02:38:46PM +0200, Maxim Mikityanskiy wrote: After lockdep gets triggered for the first time, it gets disabled, and lockdep_enabled() will return false. It will affect lockdep_is_held(), which will start returning true all the ti

Re: [RFC PATCH net] bonding: Work around lockdep_is_held false positives

2021-03-22 Thread Leon Romanovsky
On Mon, Mar 22, 2021 at 02:38:46PM +0200, Maxim Mikityanskiy wrote: > After lockdep gets triggered for the first time, it gets disabled, and > lockdep_enabled() will return false. It will affect lockdep_is_held(), > which will start returning true all the time. Normally, it just disables > checks t

[RFC PATCH net] bonding: Work around lockdep_is_held false positives

2021-03-22 Thread Maxim Mikityanskiy
After lockdep gets triggered for the first time, it gets disabled, and lockdep_enabled() will return false. It will affect lockdep_is_held(), which will start returning true all the time. Normally, it just disables checks that expect a lock to be held. However, the bonding code checks that a lock i