svn commit: r266764 - vendor-sys/illumos/dist/uts/common/fs/zfs
Xin LI
delphij at FreeBSD.org
Tue May 27 19:02:26 UTC 2014
Author: delphij
Date: Tue May 27 19:02:25 2014
New Revision: 266764
URL: http://svnweb.freebsd.org/changeset/base/266764
Log:
4730 metaslab group taskq should be destroyed in metaslab_group_destroy()
illumos/illumos-gate at be082110c08433beadb738ad3be035a73d995ea8
Modified:
vendor-sys/illumos/dist/uts/common/fs/zfs/metaslab.c
Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/metaslab.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/metaslab.c Tue May 27 19:01:10 2014 (r266763)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/metaslab.c Tue May 27 19:02:25 2014 (r266764)
@@ -321,7 +321,7 @@ metaslab_group_create(metaslab_class_t *
mg->mg_class = mc;
mg->mg_activation_count = 0;
- mg->mg_taskq = taskq_create("metaslab_group_tasksq", metaslab_load_pct,
+ mg->mg_taskq = taskq_create("metaslab_group_taskq", metaslab_load_pct,
minclsyspri, 10, INT_MAX, TASKQ_THREADS_CPU_PCT);
return (mg);
@@ -339,6 +339,7 @@ metaslab_group_destroy(metaslab_group_t
*/
ASSERT(mg->mg_activation_count <= 0);
+ taskq_destroy(mg->mg_taskq);
avl_destroy(&mg->mg_metaslab_tree);
mutex_destroy(&mg->mg_lock);
kmem_free(mg, sizeof (metaslab_group_t));
More information about the svn-src-vendor
mailing list