RDMA/addr: Use client registration to fix module unload race
authorSean Hefty <sean.hefty@intel.com>
Tue, 31 Oct 2006 19:12:59 +0000 (11:12 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 2 Nov 2006 22:26:04 +0000 (14:26 -0800)
commit7a118df3ea23820b9922a1b51cd2f24e464f4c17
tree723e979c84263c52971494b7ba69cbee25f602bc
parent68586b67ab1a2fd618f79e29a06f10ae886f4b46
RDMA/addr: Use client registration to fix module unload race

Require registration with ib_addr module to prevent caller from
unloading while a callback is in progress.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/addr.c
drivers/infiniband/core/cma.c
include/rdma/ib_addr.h