Skip to content

Commit

Permalink
md: skip all metadata update processing when using external metadata.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Apr 30, 2008
1 parent 6a51830 commit 8377bc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8377bc8

Please sign in to comment.