]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Fix synchronization with device removal in cma_iw_handler
authorSean Hefty <sean.hefty@intel.com>
Mon, 7 May 2007 18:49:12 +0000 (11:49 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 14 May 2007 20:56:32 +0000 (13:56 -0700)
commit2a6670e4ee27e7b94b26ecf72ceb3b6a101439a2
tree11d048c93ea0f638a15ec47f4efda23731d202f1
parent3d3b63466f8baf9d76ca3e71475ca540801ec75b
RDMA/cma: Fix synchronization with device removal in cma_iw_handler

The cma_iw_handler needs to validate the state of the rdma_cm_id before
processing a new connection request to ensure that a device removal is
not already being processed for the same rdma_cm_id.  Without the state
check, the user can receive simultaneous callbacks for the same cm_id, or
a callback after they've destroyed the cm_id.

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