From: SandeepKsinha Date: Wed, 17 Jun 2009 22:49:35 +0000 (+1000) Subject: md linear: Protecting mddev with rcu locks to avoid races X-Git-Tag: v2.6.31-rc1~143^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af11c397fd8835c70ec0bb777104e4ab98b2d660;p=pandora-kernel.git md linear: Protecting mddev with rcu locks to avoid races Due to the lack of memory ordering guarantees, we may have races around mddev->conf. In particular, the correct contents of the structure we get from dereferencing ->private might not be visible to this CPU yet, and they might not be correct w.r.t mddev->raid_disks. This patch addresses the problem using rcu protection to avoid such race conditions. Signed-off-by: SandeepKsinha Signed-off-by: NeilBrown --- Reading git-diff-tree failed