From: NeilBrown Date: Mon, 15 Dec 2014 01:56:59 +0000 (+1100) Subject: md: remove mddev_lock() from md_attr_show() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~104^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b17c9b67e5984210c83d50d2c8117d3bd50ea0;p=pandora-kernel.git md: remove mddev_lock() from md_attr_show() Most attributes can be read safely without any locking. A race might lead to a slightly out-dated value, but nothing wrong. We already have locking in some places where needed. All that remains is can_clear_show(), behind_writes_used_show() and action_show() which are easily fixed. Signed-off-by: NeilBrown --- Reading git-diff-tree failed