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

md: remove mddev_lock from rdev_attr_show()



No rdev attributes need locking for 'show', though
state_show() might benefit from ensuring it sees a
consistent set of flags.

None even use rdev->mddev, so testing for it isn't really
needed and it certainly doesn't need to be held constant.

So improve state_show() and remove the locking.

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