Files
twx-linux/lib
Roland Dreier 94744ac0cd Convert idr's internal locking to _irqsave variant
Currently, the code in lib/idr.c uses a bare spin_lock(&idp->lock) to do
internal locking.  This is a nasty trap for code that might call idr
functions from different contexts; for example, it seems perfectly
reasonable to call idr_get_new() from process context and idr_remove() from
interrupt context -- but with the current locking this would lead to a
potential deadlock.

The simplest fix for this is to just convert the idr locking to use
spin_lock_irqsave().

In particular, this fixes a very complicated locking issue detected by
lockdep, involving the ib_ipoib driver's priv->lock and dev->_xmit_lock,
which get involved with the ib_sa module's query_idr.lock.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
2006-09-18 19:28:17 +02:00
..
2006-01-10 08:01:57 -08:00
2006-01-10 08:01:57 -08:00
2005-10-18 08:26:15 -07:00
2005-08-07 10:00:40 -07:00
2005-11-28 14:42:23 -08:00
2006-02-18 16:30:40 -05:00
2005-09-10 10:06:21 -07:00
2006-02-01 08:53:13 -08:00
2005-06-25 16:25:02 -07:00
2005-10-30 17:37:32 -08:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:32 -08:00