summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorSteve Wise2013-04-23 18:17:14 +0200
committerRoland Dreier2013-04-25 02:47:33 +0200
commite413a823f60b582af471f0079eb99f50d34b0da7 (patch)
tree945c3a57df72e353f03a5ad3b7623df219dcab56 /drivers/infiniband/hw
parentRDMA: Rename random32() to prandom_u32() (diff)
downloadkernel-qcow2-linux-e413a823f60b582af471f0079eb99f50d34b0da7.tar.gz
kernel-qcow2-linux-e413a823f60b582af471f0079eb99f50d34b0da7.tar.xz
kernel-qcow2-linux-e413a823f60b582af471f0079eb99f50d34b0da7.zip
RDMA/iwcm: Don't touch cmid after dropping reference
The function cm_work_handler() cannot touch the cm_id after it derefs it, because it might be freed on another concurrent thread. If there are more work items queued for this cm_id, then we know there must be more references because they are added when the work items are queued. So in the while loop inside cm_work_handler(), after derefing, if the queue is empty, then exit the function. Otherwise we know it's safe to re-acquire the lock. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
0 files changed, 0 insertions, 0 deletions