From: Bart Van Assche Date: Fri, 14 Mar 2014 12:52:45 +0000 (+0100) Subject: IB/srp: Avoid duplicate connections X-Git-Tag: v3.15-rc1~103^2^11~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d7091bcf6f893a9b1a2add357c637055eae4e68;p=pandora-kernel.git IB/srp: Avoid duplicate connections The connection uniqueness check is performed before a new connection is added to the target list. This patch protects both actions by a mutex such that simultaneous writes from two different threads into the "add_target" variable do not result in duplicate connections. Signed-off-by: Bart Van Assche Signed-off-by: Roland Dreier --- Reading git-diff-tree failed