]> git.baikalelectronics.ru Git - kernel.git/commit
md: reinitialise more mddev fields in do_md_stop.
authorNeilBrown <neilb@suse.de>
Wed, 30 Apr 2008 07:52:29 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:32 +0000 (08:29 -0700)
commit2c42f7be1270f6f8844a081f795d82e83364275b
treec9e812bf24f39a497d197f516cf3023482403d19
parent53d3dfb6529d5dd3ff0cbb22211ca70c438f20be
md: reinitialise more mddev fields in do_md_stop.

I keep finding problems where an mddev gets reused and some fields has a value
from a previous usage that confuses the new usage.  So clear all fields that
could possible need clearing when calling do_md_stop.

Also initialise the 'level' of a new array to LEVEL_NONE (which isn't 0).

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c