Skip to content
Commit 4e59ca7d authored by Dan Williams's avatar Dan Williams Committed by NeilBrown
Browse files

md: rcu_read_lock() walk of mddev->disks in md_do_sync()



Other walks of this list are either under rcu_read_lock() or the list
mutation lock (mddev_lock()).  This protects against the improbable case of a
disk being removed from the array at the start of md_do_sync().

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 93be75ff
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