diff options
author | NeilBrown <neilb@suse.de> | 2014-12-15 12:56:59 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-02-06 09:32:55 +1100 |
commit | 7b1485bab9c49b0d3811d72beb0de60c7b8b337d (patch) | |
tree | 7cb275a901ca30331d6c53be02be58bd578cb2b8 /lib/string_helpers.c | |
parent | f97fcad38f2ecf2e34b6f0ab93f74f2978dbe008 (diff) |
md/raid5: use ->lock to protect accessing raid5 sysfs attributes.
It is important that mddev->private isn't freed while
a sysfs attribute function is accessing it.
So use mddev->lock to protect the setting of ->private to NULL, and
take that lock when checking ->private for NULL and de-referencing it
in the sysfs access functions.
This only applies to the read ('show') side of access. Write
access will be handled separately.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions