Skip to content

Commit

Permalink
RDMA/cxgb4: Detach from the LLD after unregistering RDMA device
Browse files Browse the repository at this point in the history
In the RDMA core unregister path, kernel users will be calling down
into the T4 provider to release resources.  So we cannot detach from
the LLD until this process completes.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Steve Wise authored and Roland Dreier committed May 25, 2010
1 parent a0fe3cc commit fd388ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/infiniband/hw/cxgb4/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,12 @@ static void __exit c4iw_exit_module(void)
{
struct c4iw_dev *dev, *tmp;

cxgb4_unregister_uld(CXGB4_ULD_RDMA);

mutex_lock(&dev_mutex);
list_for_each_entry_safe(dev, tmp, &dev_list, entry) {
c4iw_remove(dev);
}
mutex_unlock(&dev_mutex);

cxgb4_unregister_uld(CXGB4_ULD_RDMA);
c4iw_cm_term();
debugfs_remove_recursive(c4iw_debugfs_root);
}
Expand Down

0 comments on commit fd388ce

Please sign in to comment.