diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-08-31 16:43:06 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-08-31 17:25:56 -0700 |
commit | 5a4e6dccbc0cd1b726820b782daebf887dcb95e9 (patch) | |
tree | 28750ce9e633081f8e814d69a3f3d21fd71359f8 /mm | |
parent | 22db37ec5fd51b0c77b1dd5751b1cdc2672c08d6 (diff) |
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 'mm')
0 files changed, 0 insertions, 0 deletions