linux-stable-rt/drivers/infiniband/hw/cxgb3
Steve Wise be43324d8b RDMA/cxgb3: Fix deadlock initializing iw_cxgb3 device
Running 'ifconfig up' on the cxgb3 interface with iw_cxgb3 loaded
causes a deadlock.  The rtnl lock is already held in this path.  The
function fw_supports_fastreg() was introduced in 2.6.27 to
conditionally set the IB_DEVICE_MEM_MGT_EXTENSIONS bit iff the
firmware was at 7.0 or greater, and this function also acquires the
rtnl lock and which thus causes a deadlock.  Further, if iw_cxgb3 is
loaded _after_ the nic interface is brought up, then the deadlock does
not occur and therefore fw_supports_fastreg() does need to grab the
rtnl lock in that path.

It turns out this code is all useless anyway.  The low level driver
will NOT allow the open if the firmware isn't 7.0, so iw_cxgb3 can
always set the MEM_MGT_EXTENSIONS bit.  Simplify...

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-08-04 11:08:37 -07:00
..
Kconfig
Makefile
cxio_dbg.c
cxio_hal.c
cxio_hal.h
cxio_resource.c
cxio_resource.h
cxio_wr.h
iwch.c
iwch.h
iwch_cm.c
iwch_cm.h
iwch_cq.c
iwch_ev.c
iwch_mem.c
iwch_provider.c RDMA/cxgb3: Fix deadlock initializing iw_cxgb3 device 2008-08-04 11:08:37 -07:00
iwch_provider.h
iwch_qp.c
iwch_user.h
tcb.h