Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214453
b: refs/heads/master
c: 24fa163
h: refs/heads/master
i:
  214451: 4c846ab
v: v3
  • Loading branch information
Zach Brown authored and Andy Grover committed Sep 9, 2010
1 parent 95c143f commit 22bde66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6fb0df12db6c8b6bbcc7b5c9459b3bbf5f0cee6
refs/heads/master: 24fa163a4bae74b3378d30e1bc776568cfca8121
11 changes: 9 additions & 2 deletions trunk/net/rds/ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,18 @@ static int rds_ib_laddr_check(__be32 addr)
return ret;
}

static void rds_ib_unregister_client(void)
{
ib_unregister_client(&rds_ib_client);
/* wait for rds_ib_dev_free() to complete */
flush_workqueue(rds_wq);
}

void rds_ib_exit(void)
{
rds_info_deregister_func(RDS_INFO_IB_CONNECTIONS, rds_ib_ic_info);
rds_ib_destroy_nodev_conns();
ib_unregister_client(&rds_ib_client);
rds_ib_unregister_client();
rds_ib_sysctl_exit();
rds_ib_recv_exit();
rds_trans_unregister(&rds_ib_transport);
Expand Down Expand Up @@ -404,7 +411,7 @@ int __init rds_ib_init(void)
out_sysctl:
rds_ib_sysctl_exit();
out_ibreg:
ib_unregister_client(&rds_ib_client);
rds_ib_unregister_client();
out:
return ret;
}
Expand Down

0 comments on commit 22bde66

Please sign in to comment.