Re: [PATCH v4 04/15] lockdep: Add a function building a chain between two classes

2017-01-11 Thread Byungchul Park
On Tue, Jan 10, 2017 at 10:00:38PM +0100, Peter Zijlstra wrote: > > +static inline int add_chain_cache_classes(unsigned int prev, > > + unsigned int next, > > + unsigned int irq_context, > > +

Re: [PATCH v4 04/15] lockdep: Add a function building a chain between two classes

2017-01-10 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 02:12:00PM +0900, Byungchul Park wrote: > add_chain_cache() should be used in the context where the hlock is > owned since it might be racy in another context. However crossrelease > feature needs to build a chain between two locks regardless of context. > So introduce a new

[PATCH v4 04/15] lockdep: Add a function building a chain between two classes

2016-12-08 Thread Byungchul Park
add_chain_cache() should be used in the context where the hlock is owned since it might be racy in another context. However crossrelease feature needs to build a chain between two locks regardless of context. So introduce a new function making it possible. Signed-off-by: Byungchul Park --- kerne