From: NeilBrown Date: Mon, 15 Dec 2014 01:56:59 +0000 (+1100) Subject: md: remove mddev_lock from rdev_attr_show() X-Git-Tag: fixes-v4.0-rc1~120^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=758bfc8abfbc26c196a53c52d52d251f20226a5c;p=pandora-kernel.git md: remove mddev_lock from rdev_attr_show() No rdev attributes need locking for 'show', though state_show() might benefit from ensuring it sees a consistent set of flags. None even use rdev->mddev, so testing for it isn't really needed and it certainly doesn't need to be held constant. So improve state_show() and remove the locking. Signed-off-by: NeilBrown --- Reading git-diff-tree failed