Re: [PATCH 1/6] locking: add ww_mutex_(un)lock_for_each helpers

2019-06-14 Thread Christian König
Am 14.06.19 um 14:56 schrieb Peter Zijlstra: On Fri, Jun 14, 2019 at 02:41:20PM +0200, Christian König wrote: The ww_mutex implementation allows for detection deadlocks when multiple threads try to acquire the same set of locks in different order. The problem is that handling those deadlocks

Re: [PATCH 1/6] locking: add ww_mutex_(un)lock_for_each helpers

2019-06-14 Thread Peter Zijlstra
On Fri, Jun 14, 2019 at 02:41:20PM +0200, Christian König wrote: > The ww_mutex implementation allows for detection deadlocks when multiple > threads try to acquire the same set of locks in different order. > > The problem is that handling those deadlocks was the burden of the user of > the

[PATCH 1/6] locking: add ww_mutex_(un)lock_for_each helpers

2019-06-14 Thread Christian König
The ww_mutex implementation allows for detection deadlocks when multiple threads try to acquire the same set of locks in different order. The problem is that handling those deadlocks was the burden of the user of the ww_mutex implementation and at least some users didn't got that right on the