lkml.org 
[lkml]   [2017]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH]locking:mutex Print warning if trylock in irq context
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 calling of this
> function.

Or you run with lockdep enabled and not make this thing slower for
everybody.

\
 
 \ /
  Last update: 2017-12-22 21:52    [W:0.025 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site