From: NeilBrown Date: Mon, 10 Jul 2006 11:44:15 +0000 (-0700) Subject: [PATCH] md: delay starting md threads until array is completely setup X-Git-Tag: v2.6.18-rc2~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8c9de05c2a860fe6b02fedcb48763bcee648b3;p=pandora-kernel.git [PATCH] md: delay starting md threads until array is completely setup When an array is started we start one or two threads (two if there is a reshape or recovery that needs to be completed). We currently start these *before* the array is completely set up and in particular before queue->queuedata is set. If the thread actually starts very quickly on another CPU, we can end up dereferencing queue->queuedata and oops. This patch also makes sure we don't try to start a recovery if a reshape is being restarted. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed