Skip to content
Commit 126925c0 authored by NeilBrown's avatar NeilBrown
Browse files

md: call md_update_sb even for 'external' metadata arrays.



Now that we depend on md_update_sb to clear variable bits in
mddev->flags (rather than trying not to set them) it is important to
always call md_update_sb when appropriate.

md_check_recovery has this job but explicitly avoids it for ->external
metadata arrays.  This is not longer appropraite, or needed.

However we do want to avoid taking the mddev lock if only
MD_CHANGE_PENDING is set as that is not cleared by md_update_sb for
external-metadata arrays.

Reported-by: default avatar"Kwolek, Adam" <adam.kwolek@intel.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 9c03f162
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment