From: Eli Cohen Date: Thu, 17 Apr 2008 04:09:35 +0000 (-0700) Subject: IB/mlx4: Fix race when detaching a QP from a multicast group X-Git-Tag: v2.6.26-rc1~1156^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dc51b32582d45cb7e8322d750ffe0e6d82b506d;p=pandora-kernel.git IB/mlx4: Fix race when detaching a QP from a multicast group When detaching the last QP from an MCG entry, we need to make sure that at any time, there will be no entry with zero number of QPs which is linked to the list of the MCGs of the corresponding hash index. So don't write back the MCG entry if we are removing the last QP; just unlink the entry. Also, remove an unnecessary MCG read when attaching a QP requires allocation of a new entry in the AMGM. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed