From: Sagi Grimberg Date: Sun, 8 Jun 2014 07:00:59 +0000 (+0300) Subject: mlx5_core: Fix possible race between mr tree insert/delete X-Git-Tag: omap-for-v3.17/fixes-against-rc2~269^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ef07a9f369742a7b18c77484411cff0bd790291;p=pandora-kernel.git mlx5_core: Fix possible race between mr tree insert/delete In mlx5_core_destroy_mkey(), we must first remove the mr from the radix tree and then destroy it. Otherwise we might hit a race if the key was reallocated and we attempted to insert it to the radix tree. Also handle radix tree insert/delete failures. Signed-off-by: Sagi Grimberg Reviewed-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed