Please sign in to comment.
Fix ENXIO from spa_ld_verify_logs() in ztest
This patch fixes a small issue where the zil_check_log_chain() code path would hit an EBUSY error. This would occur when 2 threads attempted to call metaslab_activate() at the same time. In this case, the "loser" would receive an error code which should have been ignored, but was instead floated to the caller. This ended up resulting in an ENXIO being returned from from spa_ld_verify_logs(). Reviewed-by: Brian Behlendorf <firstname.lastname@example.org> Reviewed-by: Serapheim Dimitropoulos <email@example.com> Reviewed-by: Matthew Ahrens <firstname.lastname@example.org> Signed-off-by: Tom Caputi <email@example.com> Closes #8010
- Loading branch information...