]> err.no Git - linux-2.6/commit
[PATCH] md: move bitmap_create to after md array has been initialised
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:16 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:03 +0000 (08:34 -0800)
commitb15c2e57f0f5bf596a19e9c5571e5b07cdfc7363
treeda68e3ed72e59212936daf7dd4c86f1f9a7ab386
parent6ff8d8ec06690f4011a6c3ad9e0759b9094f0601
[PATCH] md: move bitmap_create to after md array has been initialised

This is important because bitmap_create uses
  mddev->resync_max_sectors
and that doesn't have a valid value until after the array
has been initialised (with pers->run()).
[It doesn't make a difference for current personalities that
 support bitmaps, but will make a difference for raid10]

This has the added advantage of meaning with can move the thread->timeout
manipulation inside the bitmap.c code instead of sprinkling identical code
throughout all personalities.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid5.c
drivers/md/raid6main.c