HomeFreeBSD

Improve code in arc_buf_remove_ref

Description

Improve code in arc_buf_remove_ref

When we remove references of arc bufs in the arc_anon state we
needn't take its header's hash_lock, so postpone it to where we
really need it to avoid unnecessary invocations of function buf_hash.

Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1557

Details

Provenance
Ying Zhu <casualfisher@gmail.com>Authored on Jun 29 2013, 7:03 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 9 2013, 6:53 PM
Parents
rG8e07b99b2f5e: Update zio.c
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb4f7f105275d: Improve code in arc_buf_remove_ref (authored by Ying Zhu <casualfisher@gmail.com>).Jul 9 2013, 6:53 PM