Re: [PATCH v5 1/3] locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches

2018-05-22 Thread Dan Williams
On Wed, Apr 11, 2018 at 7:24 AM Arnd Bergmann wrote: > On Fri, Mar 30, 2018 at 11:27 PM, Waiman Long wrote: > > For a rwsem, locking can either be exclusive or shared. The corresponding > > exclusive or shared unlock must be used. Otherwise, the protected data > > structures may get corrupted or

Re: [PATCH v5 1/3] locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches

2018-04-11 Thread Arnd Bergmann
On Fri, Mar 30, 2018 at 11:27 PM, Waiman Long wrote: > For a rwsem, locking can either be exclusive or shared. The corresponding > exclusive or shared unlock must be used. Otherwise, the protected data > structures may get corrupted or the lock may be in an inconsistent state. > > In order to dete