]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
md: Don't try to set an array to 'read-auto' if it is already in that state.
authorNeilBrown <neilb@suse.de>
Mon, 13 Oct 2008 00:55:12 +0000 (11:55 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 13 Oct 2008 00:55:12 +0000 (11:55 +1100)
commit80268ee9270ebe4847365a7426de91d179e870d0
tree0f5d10d1cc86b64030d036e6e322b23caf6aec5c
parentea43ddd8491feccf36267349748ea91b1194481e
md: Don't try to set an array to 'read-auto' if it is already in that state.

'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 <neilb@suse.de>
drivers/md/md.c