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

md: make merge_bvec_fn more robust in face of personality changes.



There is no locking around calls to merge_bvec_fn(), so
it is possible that calls which coincide with a level (or personality)
change could go wrong.

So create a central dispatch point for these functions and use
rcu_read_lock().
If the array is suspended, reject any merge that can be rejected.
If not, we know it is safe to call the function.

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