Re: time to add NET_ASSERT_WLOCKED()

2021-04-27 Thread Alexander Bluhm
On Wed, Apr 28, 2021 at 01:44:42AM +0200, Alexandr Nedvedicky wrote: > Hello, > > with moving towards NET_RLOCK...() shall we add an explicit > assert to state caller owns netlock exclusively? I propose > to introduce NET_ASSERT_WLOCKED() > > NET_ASSERT_WLOCKED() I had exacly the same diff

time to add NET_ASSERT_WLOCKED()

2021-04-27 Thread Alexandr Nedvedicky
Hello, with moving towards NET_RLOCK...() shall we add an explicit assert to state caller owns netlock exclusively? I propose to introduce NET_ASSERT_WLOCKED() NET_ASSERT_WLOCKED() thanks and regards sashan 8<---8<---8<--8< diff --