diff options
author | NeilBrown <neilb@suse.de> | 2008-04-30 03:52:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:32 -0400 |
commit | 8377bc808029251c2c0f52116cf87d80291b25bf (patch) | |
tree | 4cf50fc32d81a6c5f6f98a0503cc05ea924b58eb /drivers/md | |
parent | 6a51830e14529063cb2685921e1177d9af50e49a (diff) |
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 <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 11457a28a14c..61767f1962eb 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) | |||
1652 | int sync_req; | 1652 | int sync_req; |
1653 | int nospares = 0; | 1653 | int nospares = 0; |
1654 | 1654 | ||
1655 | if (mddev->external) | ||
1656 | return; | ||
1655 | repeat: | 1657 | repeat: |
1656 | spin_lock_irq(&mddev->write_lock); | 1658 | spin_lock_irq(&mddev->write_lock); |
1657 | 1659 | ||