[Bug 240145] [smartpqi][zfs] kernel panic with hanging vdev

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 1 21:57:40 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240145

seri <simba07565 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simba07565 at gmail.com

--- Comment #11 from seri <simba07565 at gmail.com> ---
zed trying to fault the disk.

PID: 8821 TASK: ffff89f704878000 CPU: 6 COMMAND: "zed"
#0 [ffffa03c47a0f930] __schedule at ffffffffa88789dc
#1 [ffffa03c47a0f9a8] schedule at ffffffffa8878e76
#2 [ffffa03c47a0f9c0] schedule_timeout at ffffffffa887bcc8
#3 [ffffa03c47a0fa60] wait_for_completion at ffffffffa887981d
#4 [ffffa03c47a0fab8] flush_work at ffffffffa80c02ca
#5 [ffffa03c47a0fb30] __cancel_work_timer at ffffffffa80c0443
#6 [ffffa03c47a0fba0] cancel_delayed_work_sync at ffffffffa80c0593
#7 [ffffa03c47a0fbb0] disk_block_events at ffffffffa83d9d67
#8 [ffffa03c47a0fbe8] __blkdev_get at ffffffffa828c147
#9 [ffffa03c47a0fc38] blkdev_get at ffffffffa828c6ff
#10 [ffffa03c47a0fcb8] blkdev_get_by_path at ffffffffa828ca13
#11 [ffffa03c47a0fce0] vdev_disk_open at ffffffffc0734591 [zfs]
#12 [ffffa03c47a0fd40] vdev_open at ffffffffc0730808 [zfs]
#13 [ffffa03c47a0fd88] vdev_reopen at ffffffffc07318c1 [zfs]
#14 [ffffa03c47a0fda8] vdev_fault at ffffffffc0732310 [zfs]
#15 [ffffa03c47a0fdd8] zfs_ioc_vdev_set_state at ffffffffc0762737 [zfs]
#16 [ffffa03c47a0fe08] zfsdev_ioctl at ffffffffc076ae82 [zfs]
#17 [ffffa03c47a0fe70] do_vfs_ioctl at ffffffffa8264a76
#18 [ffffa03c47a0fee8] sys_ioctl at ffffffffa8265009
#19 [ffffa03c47a0ff28] do_syscall_64 at ffffffffa8003997


crash> bt
PID: 47708 TASK: ffff89f5dfb5c000 CPU: 0 COMMAND: "z_ioctl_iss"
#0 [ffffa03c572ff820] machine_kexec at ffffffffa805a19c
#1 [ffffa03c572ff878] __crash_kexec at ffffffffa8137513
#2 [ffffa03c572ff940] crash_kexec at ffffffffa81375ec
#3 [ffffa03c572ff960] oops_end at ffffffffa802f81a
#4 [ffffa03c572ff988] no_context at ffffffffa8067c52
#5 [ffffa03c572ff9e0] __bad_area_nosemaphore at ffffffffa8067f8e
#6 [ffffa03c572ffa30] bad_area_nosemaphore at ffffffffa8068084
#7 [ffffa03c572ffa40] __do_page_fault at ffffffffa8068748
#8 [ffffa03c572ffab0] trace_do_page_fault at ffffffffa8068c43
#9 [ffffa03c572ffae8] do_async_page_fault at ffffffffa806162a
#10 [ffffa03c572ffb00] async_page_fault at ffffffffa887e9f8
[exception RIP: generic_make_request_checks+73]
https://bestdoorbellcamera2021.com/
RIP: ffffffffa83c6159 RSP: ffffa03c572ffbb0 RFLAGS: 00010287
RAX: 0000000000000000 RBX: ffff89ed72203700 RCX: 000000003cd63180
RDX: 0000000000000080 RSI: 0000884849f33767 RDI: ffff89f7020cee80
RBP: ffffa03c572ffc10 R8: 0000000000000010 R9: 0000000002400000
R10: ffff89f713407980 R11: 0000000000000000 R12: 000000003cd63200
R13: 0000000000000080 R14: 0000000000000000 R15: 0000000000000000
ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018
#11 [ffffa03c572ffc18] generic_make_request at ffffffffa83c8a44
#12 [ffffa03c572ffc68] submit_bio at ffffffffa83c8d2d
#13 [ffffa03c572ffcb8] vdev_disk_io_start at ffffffffc07350ce [zfs]
#14 [ffffa03c572ffd98] zio_vdev_io_start at ffffffffc07a0844 [zfs]
#15 [ffffa03c572ffde8] zio_execute at ffffffffc0796665 [zfs]
#16 [ffffa03c572ffe28] taskq_thread at ffffffffc059b396 [spl]
#17 [ffffa03c572ffec8] kthread at ffffffffa80c6ce7
#18 [ffffa03c572fff50] ret_from_fork at ffffffffa887d755

if (vd == NULL) {
...
} else if (ZIO_IS_TRIM(zio)) {
                /*
                * For TRIM, it is important to
                * take the SCL_ZIO lock to avoid another thread messing
                * with the vdev state
                */
                spa_config_enter(spa, SCL_ZIO, zio, RW_READER);
        }

And in zio_vdev_io_assess

if ((vd == NULL && !(zio->io_flags & ZIO_FLAG_CONFIG_WRITER)) ||
            (ZIO_IS_TRIM(zio)))
                spa_config_exit(zio->io_spa, SCL_ZIO, zio);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-scsi mailing list