HomeFreeBSD

Serialize access to spa->spa_feat_stats nvlist

Description

Serialize access to spa->spa_feat_stats nvlist

The function spa_add_feature_stats() manipulates the shared nvlist
spa->spa_feat_stats in an unsafe concurrent manner. Add a mutex to
protect the list.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3335

Details

Provenance
Ned Bass <bass6@llnl.gov>Authored on Apr 23 2015, 7:32 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 24 2015, 10:04 PM
Parents
rG700810964644: align zfs_autoimport_disable manpage with reality
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG4eb30c68644c: Serialize access to spa->spa_feat_stats nvlist (authored by Ned Bass <bass6@llnl.gov>).Apr 24 2015, 10:04 PM