Skip to content

VERIFY3(se->se_taskqid == TASKQID_INVALID) failed after entering .zfs #11632

Closed
@vthriller

Description

@vthriller

System information

Type Version/Name
Distribution Name Gentoo
Distribution Version
Linux Kernel 5.4.97-gentoo-x86_64
Architecture amd64
ZFS Version 2.0.3-r0-gentoo (USE=debug)
SPL Version 2.0.3-r0-gentoo

Describe the problem you're observing

[15163.534474] VERIFY3(se->se_taskqid == TASKQID_INVALID) failed (29 == 0)
[15163.536053] PANIC at zfs_ctldir.c:374:zfsctl_snapshot_unmount_delay_impl()
[15163.536391] Showing stack for process 27720
[15163.536396] CPU: 6 PID: 27720 Comm: spl_delay_taskq Tainted: P           O      5.4.97-gentoo-x86_64 #2
[15163.536397] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ?-20190711_202441-buildvm-armv7-10.arm.fedoraproject.org-2.fc31 04/01/2014
[15163.536398] Call Trace:
[15163.536408]  dump_stack+0x69/0x84
[15163.536416]  spl_dumpstack+0x24/0x26 [spl]
[15163.536420]  spl_panic+0xcf/0xf7 [spl]
[15163.536659]  ? zfs_refcount_add+0x11/0x13 [zfs]
[15163.536700]  ? zfsctl_snapshot_find_by_objsetid+0x8b/0xae [zfs]
[15163.536703]  ? _raw_spin_lock+0x9/0xb
[15163.536752]  ? zfs_refcount_remove+0x11/0x13 [zfs]
[15163.536791]  ? zfsctl_snapshot_rele+0x19/0x4c [zfs]
[15163.536795]  ? do_raw_spin_lock+0x2c/0x4e
[15163.536797]  ? _raw_spin_lock+0x9/0xb
[15163.536841]  ? zfs_refcount_remove_many+0x153/0x1d8 [zfs]
[15163.536880]  zfsctl_snapshot_unmount_delay_impl+0x37/0x79 [zfs]
[15163.536919]  snapentry_expire+0x72/0xe8 [zfs]
[15163.536923]  taskq_thread+0x3fc/0x4ed [spl]
[15163.536928]  ? wake_up_q+0x47/0x47
[15163.536933]  ? taskq_create+0x40b/0x40b [spl]
[15163.536936]  kthread+0xf4/0xf9
[15163.536939]  ? kthread_unpark+0x4f/0x4f
[15163.536942]  ret_from_fork+0x22/0x40
[15358.081184] INFO: task spl_delay_taskq:27720 blocked for more than 122 seconds.
[15358.081189]       Tainted: P           O      5.4.97-gentoo-x86_64 #2
[15358.081191] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[15358.081192] spl_delay_taskq D    0 27720      2 0x80004000
[15358.081198] Call Trace:
[15358.081208]  __schedule+0x4f3/0x555
[15358.081214]  schedule+0x71/0x8d
[15358.081221]  spl_panic+0xf5/0xf7 [spl]
[15358.081277]  ? zfs_refcount_add+0x11/0x13 [zfs]
[15358.081317]  ? zfsctl_snapshot_find_by_objsetid+0x8b/0xae [zfs]
[15358.081320]  ? _raw_spin_lock+0x9/0xb
[15358.081366]  ? zfs_refcount_remove+0x11/0x13 [zfs]
[15358.081406]  ? zfsctl_snapshot_rele+0x19/0x4c [zfs]
[15358.081410]  ? do_raw_spin_lock+0x2c/0x4e
[15358.081412]  ? _raw_spin_lock+0x9/0xb
[15358.081456]  ? zfs_refcount_remove_many+0x153/0x1d8 [zfs]
[15358.081508]  zfsctl_snapshot_unmount_delay_impl+0x37/0x79 [zfs]
[15358.081547]  snapentry_expire+0x72/0xe8 [zfs]
[15358.081552]  taskq_thread+0x3fc/0x4ed [spl]
[15358.081556]  ? wake_up_q+0x47/0x47
[15358.081561]  ? taskq_create+0x40b/0x40b [spl]
[15358.081565]  kthread+0xf4/0xf9
[15358.081567]  ? kthread_unpark+0x4f/0x4f
[15358.081569]  ret_from_fork+0x22/0x40

Nothing really happens, just traces similar to those above pop up every now and then welp, while I was writing this a simple ls .zfs/snapshot started to hang indefinitely.

Describe how to reproduce the problem

  • import degraded pool (v28, simple mirror, missing drive, -o readonly=on)
  • cd .zfs/snapshot; ls; cd whatever
  • tar cf /somewhere-else . --acls --xattrs
  • leave directory, rinse, repeat

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Triage NeededNew issue which needs to be triagedType: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions