From: NeilBrown Date: Mon, 13 Oct 2008 00:55:12 +0000 (+1100) Subject: md: Don't try to set an array to 'read-auto' if it is already in that state. X-Git-Tag: v2.6.27.16~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dcee68b26a8c19dc08e594604db4ac129d495ed;p=pandora-kernel.git md: Don't try to set an array to 'read-auto' if it is already in that state. commit 80268ee9270ebe4847365a7426de91d179e870d0 upstream. 'read-auto' is a variant of 'readonly' which will switch to writable on the first write attempt. Calling do_md_stop to set the array readonly when it is already readonly returns an error. So make sure not to do that. Signed-off-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed