Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2018 21:59:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 228750] panic on zfs mirror removal
Message-ID:  <bug-228750-3630-zrtxowN3B0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228750-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228750-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228750

--- Comment #15 from commit-hook@freebsd.org ---
A commit references this bug:

Author: mav
Date: Mon Oct 15 21:59:24 UTC 2018
New revision: 339372
URL: https://svnweb.freebsd.org/changeset/base/339372

Log:
  Skip VDEV_IO_DONE stage only for ZIO_TYPE_FREE.

  Device removal code uses zio_vdev_child_io() with ZIO_TYPE_NULL parent,
  that never happened before.  It confused FreeBSD-specific TRIM code,
  which does not use VDEV_IO_DONE for logical ZIO_TYPE_FREE ZIOs.  As
  result of that stage being skipped device removal ZIOs leaked references
  and memory that supposed to be freed by VDEV_IO_DONE, making it stuck.

  It is a quick patch rather then a nice fix, but hopefully we'll be able
  to drop it all together when alternative TRIM implementation finally get
  landed.

  PR:           228750, 229007
  Discussed with:       allanjude, avg, smh
  Approved by:  re (delphij)
  MFC after:    5 days
  Sponsored by: iXsystems, Inc.

Changes:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228750-3630-zrtxowN3B0>