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

md: use mddev->lock to protect updates to resync_{min,max}.



There are interdependencies between these two sysfs attributes
and whether a resync is currently running.

Rather than depending on reconfig_mutex to ensure no races when
testing these interdependencies are met, use the spinlock.
This will allow the mutex to be remove from protecting this
code in a subsequent patch.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 1b30e66f
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