From: NeilBrown Date: Fri, 23 May 2008 20:04:32 +0000 (-0700) Subject: md: fix possible oops when removing a bitmap from an active array X-Git-Tag: v2.6.26-rc4~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84255d1018c50e72c71a49f359989597d53a3f53;p=pandora-kernel.git md: fix possible oops when removing a bitmap from an active array It is possible to add a write-intent bitmap to an active array, or remove the bitmap that is there. When we do with the 'quiesce' the array, which causes make_request to block in "wait_barrier()". However we are sampling the value of "mddev->bitmap" before the wait_barrier call, and using it afterwards. This can result in using a bitmap structure that has been freed. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed