HomeFreeBSD

Add delay between zpool add zvol and zpool destroy

Description

Add delay between zpool add zvol and zpool destroy

As investigated by #14026, the zpool_add_004_pos can reliably hang if
the timing is not right. This is caused by a race condition between
zed doing zpool reopen (due to the zvol being added to the zpool),
and the command zpool destroy.

This change adds a delay between zpool add zvol and zpool destroy to
avoid these issue, but does not address the underlying problem.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Issue #14026
Closes #14052

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Oct 21 2022, 5:05 PM
GitHub <noreply@github.com>Committed on Oct 21 2022, 5:05 PM
Parents
rG72a366f0181e: Linux: Fix big endian and partial read bugs in get_system_hostid()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGc5a388a1ef07: Add delay between zpool add zvol and zpool destroy (authored by youzhongyang <youzhong@gmail.com>).Oct 21 2022, 5:05 PM