From: NeilBrown Date: Fri, 9 Sep 2005 23:23:50 +0000 (-0700) Subject: [PATCH] md: do not set mddev->bitmap until bitmap is fully initialised X-Git-Tag: v2.6.14-rc1~244 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3178b0dbdf67322f6506582e494bdf553cc85c32;p=pandora-kernel.git [PATCH] md: do not set mddev->bitmap until bitmap is fully initialised When hot-adding a bitmap, bitmap_daemon_work could get called while the bitmap is being created, so don't set mddev->bitmap until the bitmap is ready. This requires freeing the bitmap inside bitmap_create if creation failed part-way through. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed