lkml.org 
[lkml]   [2013]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: LOCKDEP: 3.9-rc1: mount.nfs/4272 still has locks held!

* Mandeep Singh Baines <msb@chromium.org> wrote:

> On Tue, Mar 5, 2013 at 5:16 PM, Tejun Heo <tj@kernel.org> wrote:
> > On Tue, Mar 05, 2013 at 08:05:07PM -0500, J. Bruce Fields wrote:
> >> If it's really just a 2-line patch to try_to_freeze(), could it just be
> >> carried out-of-tree by people that are specifically working on tracking
> >> down these problems?
> >>
> >> But I don't have strong feelings about it--as long as it doesn't result
> >> in the same known issues getting reported again and again....
> >
> > Agreed, I don't think a Kconfig option is justified for this. If this
> > is really important, annotate broken paths so that it doesn't trigger
> > spuriously; otherwise, please just remove it.
> >
>
> Fair enough. Let's revert then. I'll rework to use a lockdep annotation.
>
> Maybe, add a new lockdep API:
>
> lockdep_set_held_during_freeze(lock);
>
> Then when we do the check, ignore any locks that set this bit.
>
> Ingo, does this seem like a reasonable design to you?

Am I reading the discussion correctly that the new warnings show REAL potential
deadlock scenarios, which can hit real users and can lock their box up in entirely
real usage scenarios?

If yes then guys we _really_ don't want to use lockdep annotation to _HIDE_ bugs.
We typically use them to teach lockdep about things it does not know about.

How about fixing the deadlocks instead?

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-03-06 11:01    [W:0.112 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site