Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2010 11:21:37 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209096 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201006121121.o5CBLb20083615@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sat Jun 12 11:21:37 2010
New Revision: 209096
URL: http://svn.freebsd.org/changeset/base/209096

Log:
  Fix vdev_probe() starvation brings txg train to a screeching halt
  
  OpenSolaris onnv-revision:	9722:e3866bad4e96
  
  Obtained from:	OpenSolaris (Bug ID 6844069)
  Approved by:	pjd, delphij (mentor)
  MFC after:	3 days

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

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c	Sat Jun 12 11:20:50 2010	(r209095)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c	Sat Jun 12 11:21:37 2010	(r209096)
@@ -894,11 +894,11 @@ zio_taskq_dispatch(zio_t *zio, enum zio_
 	zio_type_t t = zio->io_type;
 
 	/*
-	 * If we're a config writer, the normal issue and interrupt threads
-	 * may all be blocked waiting for the config lock.  In this case,
-	 * select the otherwise-unused taskq for ZIO_TYPE_NULL.
+	 * If we're a config writer or a probe, the normal issue and
+	 * interrupt threads may all be blocked waiting for the config lock.
+	 * In this case, select the otherwise-unused taskq for ZIO_TYPE_NULL.
 	 */
-	if (zio->io_flags & ZIO_FLAG_CONFIG_WRITER)
+	if (zio->io_flags & (ZIO_FLAG_CONFIG_WRITER | ZIO_FLAG_PROBE))
 		t = ZIO_TYPE_NULL;
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006121121.o5CBLb20083615>