svn commit: r274272 - vendor-sys/illumos/dist/uts/common/fs/zfs vendor-sys/illumos/dist/uts/common/fs/zfs/sys vendor/illumos/dist/lib/libzpool/common
Xin LI
delphij at FreeBSD.org
Sat Nov 8 06:34:38 UTC 2014
Author: delphij
Date: Sat Nov 8 06:34:37 2014
New Revision: 274272
URL: https://svnweb.freebsd.org/changeset/base/274272
Log:
5244 zio pipeline callers should explicitly invoke next stage
Reviewed by: Adam Leventhal <ahl at delphix.com>
Reviewed by: Alex Reece <alex.reece at delphix.com>
Reviewed by: Christopher Siden <christopher.siden at delphix.com>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Richard Elling <richard.elling at gmail.com>
Reviewed by: Dan McDonald <danmcd at omniti.com>
Reviewed by: Steven Hartland <killing at multiplay.co.uk>
Approved by: Gordon Ross <gwr at nexenta.com>
Author: George Wilson <george.wilson at delphix.com>
illumos/illumos-gate at 738f37bc3dcd61e8a893af0f2d466d76690b70ec
Modified:
vendor/illumos/dist/lib/libzpool/common/taskq.c
Changes in other areas also in this revision:
Modified:
vendor-sys/illumos/dist/uts/common/fs/zfs/sys/vdev_impl.h
vendor-sys/illumos/dist/uts/common/fs/zfs/sys/zio.h
vendor-sys/illumos/dist/uts/common/fs/zfs/vdev_disk.c
vendor-sys/illumos/dist/uts/common/fs/zfs/vdev_file.c
vendor-sys/illumos/dist/uts/common/fs/zfs/vdev_mirror.c
vendor-sys/illumos/dist/uts/common/fs/zfs/vdev_missing.c
vendor-sys/illumos/dist/uts/common/fs/zfs/vdev_raidz.c
vendor-sys/illumos/dist/uts/common/fs/zfs/zio.c
Modified: vendor/illumos/dist/lib/libzpool/common/taskq.c
==============================================================================
--- vendor/illumos/dist/lib/libzpool/common/taskq.c Sat Nov 8 06:31:51 2014 (r274271)
+++ vendor/illumos/dist/lib/libzpool/common/taskq.c Sat Nov 8 06:34:37 2014 (r274272)
@@ -25,6 +25,7 @@
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright 2012 Garrett D'Amore <garrett at damore.org>. All rights reserved.
+ * Copyright (c) 2014 by Delphix. All rights reserved.
*/
#include <sys/zfs_context.h>
@@ -33,8 +34,10 @@ int taskq_now;
taskq_t *system_taskq;
#define TASKQ_ACTIVE 0x00010000
+#define TASKQ_NAMELEN 31
struct taskq {
+ char tq_name[TASKQ_NAMELEN + 1];
kmutex_t tq_lock;
krwlock_t tq_threadlock;
kcondvar_t tq_dispatch_cv;
@@ -247,6 +250,7 @@ taskq_create(const char *name, int nthre
cv_init(&tq->tq_dispatch_cv, NULL, CV_DEFAULT, NULL);
cv_init(&tq->tq_wait_cv, NULL, CV_DEFAULT, NULL);
cv_init(&tq->tq_maxalloc_cv, NULL, CV_DEFAULT, NULL);
+ (void) strncpy(tq->tq_name, name, TASKQ_NAMELEN + 1);
tq->tq_flags = flags | TASKQ_ACTIVE;
tq->tq_active = nthreads;
tq->tq_nthreads = nthreads;
More information about the svn-src-all
mailing list