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

md: md_stop_writes requires mddev_lock.



As md_stop_writes manipulates the sync_thread and calls md_update_sb,
it need to be called with mddev_lock held.

In all internal cases it is, but the symbol is exported for dm-raid to
call and in that case the lock won't be help.
Do make an exported version which takes the lock, and an internal
version which does not.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 43c73ca4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment