From: NeilBrown Date: Fri, 1 Sep 2006 04:27:36 +0000 (-0700) Subject: [PATCH] md: Fix issues with referencing rdev in md/raid1 X-Git-Tag: v2.6.18-rc6~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddac7c7e3a0fe9cfdcef0de24476b8d69f8cf3e7;p=pandora-kernel.git [PATCH] md: Fix issues with referencing rdev in md/raid1 We need to be careful when referencing mirrors[i].rdev. It can disappear under us at various times. So: fix a couple of problem places. comment a couple of non-problem places move an 'atomic_add' which deferences rdev down a little way to some where where it is sure to not be NULL. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed