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>
This commit is contained in:
NeilBrown 2008-04-30 00:52:28 -07:00 committed by Linus Torvalds
parent 6a51830e14
commit 8377bc8080

View File

@ -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);