From: NeilBrown Date: Wed, 30 Apr 2008 07:52:28 +0000 (-0700) Subject: md: skip all metadata update processing when using external metadata. X-Git-Tag: v2.6.26-rc1~322 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8377bc808029251c2c0f52116cf87d80291b25bf;p=linux-2.6-omap-h63xx.git md: skip all metadata update processing when using external metadata. All the metadata update processing for external metadata is on in user-space or through the sysfs interfaces, so make "md_update_sb" a no-op in that case. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 11457a28a14..61767f1962e 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -1652,6 +1652,8 @@ static void md_update_sb(mddev_t * mddev, int force_change) int sync_req; int nospares = 0; + if (mddev->external) + return; repeat: spin_lock_irq(&mddev->write_lock);