Skip to content

Commit

Permalink
ZTS: zvol_misc_trim disable blk mq
Browse files Browse the repository at this point in the history
Disable the zvol_misc_fua.ksh and zvol_misc_trim.ksh test cases on impacted
kernels.  This issue is being actively worked in openzfs#14872 and as part of that
fix this commit will be reverted.

    VERIFY(zh->zh_claim_txg == 0) failed
    PANIC at zil.c:904:zil_create()

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#14872
Closes openzfs#14870
  • Loading branch information
behlendorf authored and andrewc12 committed Jun 27, 2023
1 parent 803c04f commit 12452d7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/test-runner/bin/zts-report.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ elif sys.platform.startswith('linux'):
'mmp/mmp_inactive_import': ['FAIL', known_reason],
'zvol/zvol_misc/zvol_misc_snapdev': ['FAIL', 12621],
'zvol/zvol_misc/zvol_misc_volmode': ['FAIL', known_reason],
'zvol/zvol_misc/zvol_misc_fua': ['SKIP', 14872],
'zvol/zvol_misc/zvol_misc_trim': ['SKIP', 14872],
'idmap_mount/idmap_mount_001': ['SKIP', idmap_reason],
'idmap_mount/idmap_mount_002': ['SKIP', idmap_reason],
'idmap_mount/idmap_mount_003': ['SKIP', idmap_reason],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ fi

if ! is_linux ; then
log_unsupported "Only linux supports dd with oflag=dsync for FUA writes"
else
if [[ $(linux_version) -gt $(linux_version "6.2") ]]; then
log_unsupported "Disabled while issue #14872 is being worked"
fi

# Disabled for the CentOS 9 kernel
if [[ $(linux_version) -eq $(linux_version "5.14") ]]; then
log_unsupported "Disabled while issue #14872 is being worked"
fi
fi

typeset datafile1="$(mktemp zvol_misc_fua1.XXXXXX)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
verify_runnable "global"

if is_linux ; then
if [[ $(linux_version) -gt $(linux_version "6.2") ]]; then
log_unsupported "Disabled while issue #14872 is being worked"
fi

# Disabled for the CentOS 9 kernel
if [[ $(linux_version) -eq $(linux_version "5.14") ]]; then
log_unsupported "Disabled while issue #14872 is being worked"
fi

# We need '--force' here since the prior tests may leave a filesystem
# on the zvol, and blkdiscard will see that filesystem and print a
# warning unless you force it.
Expand Down Expand Up @@ -123,7 +132,6 @@ log_must zfs set compression=off $TESTPOOL/$TESTVOL
# Remove old data from previous tests
log_must $trimcmd $zvolpath


set_blk_mq 1
log_must_busy zpool export $TESTPOOL
log_must zpool import $TESTPOOL
Expand Down

0 comments on commit 12452d7

Please sign in to comment.