• NeilBrown's avatar
    md: use mddev->lock to protect updates to resync_{min,max}. · 23da422b
    NeilBrown authored
    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>
    23da422b
md.c 224 KB