diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-09-01 01:43:06 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-01 02:25:56 +0200 |
commit | 5a4e6dccbc0cd1b726820b782daebf887dcb95e9 (patch) | |
tree | 28750ce9e633081f8e814d69a3f3d21fd71359f8 /kernel/Kconfig.preempt | |
parent | [PATCH] i386: rwlock.h fix smp alternatives fix (diff) | |
download | linux-5a4e6dccbc0cd1b726820b782daebf887dcb95e9.tar.xz linux-5a4e6dccbc0cd1b726820b782daebf887dcb95e9.zip |
IB/mthca: Use IRQ safe locks to protect allocation bitmaps
It is supposed to be OK to call mthca_create_ah() and mthca_destroy_ah()
from any context. However, for mem-full HCAs, these functions use the
mthca_alloc() and mthca_free() bitmap helpers, and those helpers use
non-IRQ-safe spin_lock() internally. Lockdep correctly warns that
this could lead to a deadlock. Fix this by changing mthca_alloc() and
mthca_free() to use spin_lock_irqsave().
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'kernel/Kconfig.preempt')
0 files changed, 0 insertions, 0 deletions