lkml.org 
[lkml]   [1999]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Fwd: problem involving wait_on_bh]
Date
From
> > disable_irq() while holding a lock used in the irq handler
>
> My experience with locks and SMP is that you hang the machine if you
> forget to unlock a lock (e.g. because of an error exit) and an
> interrupt (trying to aquire the lock) happens.

The disable_irq one is very distinctive and an easy trap to fall into

you end up doing


irq_begins
grab_lock_irqsave()
grab_lock()
[spins]
disable_irq()
[spins waiting for irq exit]

Alan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.058 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site