Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8377bc80 authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds
Browse files

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: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6a51830e
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1652,6 +1652,8 @@ static void md_update_sb(mddev_t * mddev, int force_change)
	int sync_req;
	int sync_req;
	int nospares = 0;
	int nospares = 0;


	if (mddev->external)
		return;
repeat:
repeat:
	spin_lock_irq(&mddev->write_lock);
	spin_lock_irq(&mddev->write_lock);