https://github.com/torvalds/linux
Revision 5a4e6dccbc0cd1b726820b782daebf887dcb95e9 authored by Roland Dreier on 31 August 2006, 23:43:06 UTC, committed by Roland Dreier on 01 September 2006, 00:25:56 UTC
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>
1 parent 22db37e
History
Tip revision: 5a4e6dccbc0cd1b726820b782daebf887dcb95e9 authored by Roland Dreier on 31 August 2006, 23:43:06 UTC
IB/mthca: Use IRQ safe locks to protect allocation bitmaps
Tip revision: 5a4e6dc
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 521 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 71.0 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top