lkml.org 
[lkml]   [1999]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: deadlock avoidance?
Date
From
> The problem is I acquire a spin lock before walking the list and release
> it when finished.

Ok

> I also acquire the same spin lock before modifying the list and release
> it when done. This is what causes the deadlock. I can possibly attempt
> to acquire the spin lock when it's already acquired inside the interrupt
> handler.

This occurs in a couple of sound drivers too. I ended up with

__dothing() which assumes you own the lock, and dothing() which is a wrapper
taking the lock and calling __dothing().


-
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.136 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site