From: NeilBrown Date: Mon, 15 Dec 2014 01:57:01 +0000 (+1100) Subject: md: use mddev->lock to protect updates to resync_{min,max}. X-Git-Tag: fixes-v4.0-rc1~120^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23da422b1951cb8dbcb7c3090057cb6d5ceedf49;p=pandora-kernel.git md: use mddev->lock to protect updates to resync_{min,max}. There are interdependencies between these two sysfs attributes and whether a resync is currently running. Rather than depending on reconfig_mutex to ensure no races when testing these interdependencies are met, use the spinlock. This will allow the mutex to be remove from protecting this code in a subsequent patch. Signed-off-by: NeilBrown --- Reading git-diff-tree failed