HomeFreeBSD

Fix racy assignment of zcb.zcb_haderrors

Description

Fix racy assignment of zcb.zcb_haderrors

zcb_haderrors will be modified in zdb_blkptr_done, which is
asynchronous. So we must move this assignment after zio_wait.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #7099

Details

Provenance
Chunwei Chen <david.chen@nutanix.com>Authored on Feb 1 2018, 11:42 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 9 2018, 6:08 PM
Parents
rGf108a49236ee: Fix zle_decompress out of bound access
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0c0b0ad48add: Fix racy assignment of zcb.zcb_haderrors (authored by Chunwei Chen <david.chen@nutanix.com>).Feb 9 2018, 6:08 PM