RDMA/cxgb3: Fix regression caused by class_device -> device conversion
authorSteve Wise <swise@opengridcomputing.com>
Tue, 8 Jul 2008 21:40:05 +0000 (14:40 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 8 Jul 2008 21:40:05 +0000 (14:40 -0700)
commit5e19cf663be534c7c15a35a86fa7ddc9f797e4f4
tree32fa3b0fdc33698a307c60289701d27282397f8e
parent62786b9e81a2dbe9c073a2ade52d33a2627d6d85
RDMA/cxgb3: Fix regression caused by class_device -> device conversion

The change to iwch_provider.c in commit f4e91eb4 ("IB: convert struct
class_device to struct device") undid the fix done in commit 7f049f2f
("RDMA/cxgb3: Hold rtnl_lock() around ethtool get_drvinfo call").  It
removed the calls to rtnl_lock() that serialized the iw_cxgb3 ethtool
ops calls into the cxgb3 driver.  This locking is needed to avoid
messing up the internal state of the cxgb3 driver.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_provider.c