]> git.proxmox.com Git - mirror_zfs.git/commit
Add delay between zpool add zvol and zpool destroy
authoryouzhongyang <youzhong@gmail.com>
Fri, 21 Oct 2022 17:05:13 +0000 (13:05 -0400)
committerGitHub <noreply@github.com>
Fri, 21 Oct 2022 17:05:13 +0000 (10:05 -0700)
commitc5a388a1ef071b308ab0985fe831f94639fd4d7c
treedf97cff3b030e3d4f7068433049e0f10fc2f1c16
parent72a366f0181e541d62c776dbefd12e01f7afd216
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
tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_004_pos.ksh