From: Amir Vadai Date: Sun, 2 Nov 2014 14:26:14 +0000 (+0200) Subject: net/mlx4_core: Protect port type setting by mutex X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~294^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a98455666ec87378148a1dde97f1ce5baf75a64;p=pandora-kernel.git net/mlx4_core: Protect port type setting by mutex We need to protect set_port_type() for concurrency, as the sysfs code could call it from mutliple contexts in parallel. The port_mutex is not enough because we need to protect from concurrent modification of 'info' and stopping of the port sensing work. Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed