Page MenuHomeFreeBSD

D12731.diff
No OneTemporary

D12731.diff

Index: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
===================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
@@ -934,13 +934,18 @@
static void
vdev_geom_close(vdev_t *vd)
{
+ struct g_consumer *cp;
- if (vd->vdev_reopening)
- return;
+ cp = vd->vdev_tsd;
DROP_GIANT();
g_topology_lock();
- vdev_geom_close_locked(vd);
+
+ if (!vd->vdev_reopening ||
+ (cp != NULL && ((cp->flags & G_CF_ORPHAN) != 0 ||
+ (cp->provider != NULL && cp->provider->error != 0))))
+ vdev_geom_close_locked(vd);
+
g_topology_unlock();
PICKUP_GIANT();
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 12:58 AM (20 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15831422
Default Alt Text
D12731.diff (720 B)

Event Timeline