From: Steve Wise Date: Thu, 15 Feb 2007 14:09:36 +0000 (-0600) Subject: RDMA/iwcm: iw_cm_id destruction race fixes X-Git-Tag: v2.6.21-rc1~79^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebb90986e183296086b5d6678a838f125d743982;p=pandora-kernel.git RDMA/iwcm: iw_cm_id destruction race fixes iwcm iw_cm_id destruction race condition fixes: - iwcm_deref_id() always wakes up if there's another reference. - clean up race condition in cm_work_handler(). - create static void free_cm_id() which deallocs the work entries and then kfrees the cm_id memory. This reduces code replication. - rem_ref() if this is the last reference -and- the IWCM owns freeing the cm_id, then free it. Signed-off-by: Steve Wise Signed-off-by: Tom Tucker Acked-by: Krishna Kumar Signed-off-by: Roland Dreier --- Reading git-diff-tree failed