mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
b7b17c9b67
commit
758bfc8abf
1 changed files with 14 additions and 22 deletions
Loading…
Add table
Add a link
Reference in a new issue