aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2019-06-03 19:25:53 +0000
committerAlexander Motin <mav@FreeBSD.org>2019-06-03 19:25:53 +0000
commitc9719c9a6d431e78a09d166dcf48a04934804b78 (patch)
treed7da436d173f708d08a0bbe2bd71ce0275934db3 /sys
parent88e9fbe568652dc40c9cea8744b3da9b4d04a00b (diff)
parent5f8c7a6af38b13f38fc8cdce3dfe30e6ae757bb9 (diff)
downloadsrc-c9719c9a6d431e78a09d166dcf48a04934804b78.tar.gz
src-c9719c9a6d431e78a09d166dcf48a04934804b78.zip
MFV r348573: 9993 zil writes can get delayed in zio pipeline
illumos/illumos-gate@2258ad0b755b24a55c6173b1e6bb6188389f72dd Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Brad Lewis <brad.lewis@delphix.com> Reviewed by: Matt Ahrens <matt@delphix.com> Approved by: Dan McDonald <danmcd@joyent.com> Author: George Wilson <george.wilson@delphix.com>
Notes
Notes: svn path=/head/; revision=348574
Diffstat (limited to 'sys')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
index ded3a63163b2..777037b3f4c4 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
@@ -1614,7 +1614,8 @@ zio_taskq_dispatch(zio_t *zio, zio_taskq_type_t q, boolean_t cutinline)
* If this is a high priority I/O, then use the high priority taskq if
* available.
*/
- if (zio->io_priority == ZIO_PRIORITY_NOW &&
+ if ((zio->io_priority == ZIO_PRIORITY_NOW ||
+ zio->io_priority == ZIO_PRIORITY_SYNC_WRITE) &&
spa->spa_zio_taskq[t][q + 1].stqs_count != 0)
q++;