[Bug 252396] [zfs] [panic] Panic on 'bectl list' after slog removal

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 22 17:28:12 UTC 2021


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

--- Comment #6 from commit-hook at FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=64649f0285424435634c2dfd39f49536fc2b50dd

commit 64649f0285424435634c2dfd39f49536fc2b50dd
Author:     Martin Matuska <mm at FreeBSD.org>
AuthorDate: 2021-02-22 17:05:07 +0000
Commit:     Martin Matuska <mm at FreeBSD.org>
CommitDate: 2021-02-22 17:26:12 +0000

    zfs: fix panic if scrubbing after removing a slog device

    From openzfs-master 11f2e9a4 commit message:
      vdev_ops: don't try to call vdev_op_hold or vdev_op_rele when NULL

      This prevents a panic after a SLOG add/removal on the root pool followed
      by a zpool scrub.

      When a SLOG is removed, a hole takes its place - the vdev_ops for a hole
      is vdev_hole_ops, which defines the handler functions of vdev_op_hold
      and vdev_op_rele as NULL.

    Patch Author: Patrick Mooney <pmooney at pfmooney.com>

    Obtained from:  openzfs/zfs at 11f2e9a491baa2ae3fc00f6b8b892fa91a852ca1
    PR:             252396
    MFS after:      3 days

    (direct commit)

 sys/contrib/openzfs/module/zfs/vdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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


More information about the freebsd-fs mailing list