Re: [PATCH]locking:mutex Print warning if trylock in irq context

2017-12-22 Thread gaurav jindal
On Fri, Dec 22, 2017 at 09:51:09PM +0100, Peter Zijlstra wrote: > On Sat, Dec 23, 2017 at 02:15:19AM +0530, gaurav jindal wrote: > > Since mutex_trylock must not be called from interrupt context, a robustness > > can be added to this function by throwing a warning if it is called in > > interrupt c

Re: [PATCH]locking:mutex Print warning if trylock in irq context

2017-12-22 Thread Peter Zijlstra
On Sat, Dec 23, 2017 at 02:15:19AM +0530, gaurav jindal wrote: > Since mutex_trylock must not be called from interrupt context, a robustness > can be added to this function by throwing a warning if it is called in > interrupt context. > It would help to make debugging easier in case of undesired ca