aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2019-06-03 19:24:40 +0000
committerAlexander Motin <mav@FreeBSD.org>2019-06-03 19:24:40 +0000
commit5f8c7a6af38b13f38fc8cdce3dfe30e6ae757bb9 (patch)
tree37506d9ef054cb78401a579b8e2089edaa89f652
parent84df75c732b11127f1888e3578a740fe56d2fb62 (diff)
downloadsrc-5f8c7a6af38b13f38fc8cdce3dfe30e6ae757bb9.tar.gz
src-5f8c7a6af38b13f38fc8cdce3dfe30e6ae757bb9.zip
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=/vendor-sys/illumos/dist/; revision=348573
-rw-r--r--uts/common/fs/zfs/zio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uts/common/fs/zfs/zio.c b/uts/common/fs/zfs/zio.c
index b7e11f922a95..bd14ca38f2e8 100644
--- a/uts/common/fs/zfs/zio.c
+++ b/uts/common/fs/zfs/zio.c
@@ -1497,7 +1497,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++;