From: NeilBrown Date: Tue, 11 Jan 2011 22:03:35 +0000 (+1100) Subject: md: fix regression with re-adding devices to arrays with no metadata X-Git-Tag: v2.6.37.1~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac954cef3547aa90f1f81bad9113c759a8d4bca0;p=pandora-kernel.git md: fix regression with re-adding devices to arrays with no metadata commit bf572541ab44240163eaa2d486b06f306a31d45a upstream. Commit 1a855a0606 (2.6.37-rc4) fixed a problem where devices were re-added when they shouldn't be but caused a regression in a less common case that means sometimes devices cannot be re-added when they should be. In particular, when re-adding a device to an array without metadata we should always access the device, but after the above commit we didn't. This patch sets the In_sync flag in that case so that the re-add succeeds. This patch is suitable for any -stable kernel to which 1a855a0606 was applied. Signed-off-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed