HomeFreeBSD

Fix dbuf_stats_hash_table_data race

Description

Fix dbuf_stats_hash_table_data race

Dropping DBUF_HASH_MUTEX when walking the hash list is unsafe. The dbuf
can be freed at any time.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4846

Details

Provenance
Chunwei Chen <david.chen@osnexus.com>Authored on Jul 12 2016, 7:23 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 14 2016, 11:25 PM
Parents
rG8887c7d778dc: Prevent null dereferences when accessing dbuf kstat
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG02de3e3c5d54: Fix dbuf_stats_hash_table_data race (authored by Chunwei Chen <david.chen@osnexus.com>).Jul 14 2016, 11:25 PM