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

md: remove mddev_lock() from md_attr_show()



Most attributes can be read safely without any locking.
A race might lead to a slightly out-dated value, but nothing wrong.

We already have locking in some places where needed.
All that remains is can_clear_show(), behind_writes_used_show()
and action_show() which are easily fixed.

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