forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Illumos openzfs#5244 zio pipeline callers should explicitly invoke ne…
…xt stage openzfs#2828 References: https://www.illumos.org/projects/illumos-gate//issues/5244 https://reviews.csiden.org/r/119/diff/# Porting Notes: 1. The unported "2932 support crash dumps to raidz, etc. pools" caused a merge conflict due to a copyright difference in module/zfs/vdev_raidz.c. 2. The unported "4128 disks in zpools never go away when pulled" and additional Linux-specific changes caused merge conflicts in module/zfs/vdev_disk.c. 3. Our changes to use the TQ_PUSHPAGE extension and vdev_file_taskq caused merge conflicts in module/zfs/vdev_file.c. The taskq import that I plan to send in the future would have prevented this particular conflict. Reviewed by: Matthew Ahrens [email protected] Reviewed by: Adam Leventhal [email protected] Reviewed by: Alex Reece [email protected] Reviewed by: Christopher Siden [email protected] Ported-by: Richard Yao [email protected]
- Loading branch information
1 parent
a691832
commit db0ccb3
Showing
9 changed files
with
55 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
/* | ||
* Copyright 2011 Nexenta Systems, Inc. All rights reserved. | ||
* Copyright 2012 Garrett D'Amore <[email protected]>. 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; | ||
|
@@ -280,6 +283,7 @@ taskq_create(const char *name, int nthreads, pri_t pri, | |
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters