summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2016-07-29 21:00:54 +0300
committerDoug Ledford <dledford@redhat.com>2016-08-02 20:15:18 +0300
commit59c68ac31e15ad09d2cb04734e3c8c544a95f8d4 (patch)
tree762e01018c61bcbf000303b4929f71b0d10c83d3 /drivers/infiniband/hw
parentad61a4c7a9b7ae7e10ca93b0d2b357e02c208e75 (diff)
downloadlinux-59c68ac31e15ad09d2cb04734e3c8c544a95f8d4.tar.xz
iw_cm: free cm_id resources on the last deref
Remove the complicated logic to free the iw_cm_id inside iw_cm event handlers vs when an application thread destroys the cm_id. Also remove the block in iw_destroy_cm_id() to block the application until all references are removed. This block can cause a deadlock when disconnecting or destroying cm_ids inside an rdma_cm event handler. Simply allowing the last deref of the iw_cm_id to free the memory is cleaner and avoids this potential deadlock. Also a flag is added, IW_CM_DROP_EVENTS, that is set when the cm_id is marked for destruction. If any events are pending on this iw_cm_id, then as they are processed they will be dropped vs posted upstream if IW_CM_DROP_EVENTS is set. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
0 files changed, 0 insertions, 0 deletions