From: George Wilson Date: Fri, 2 Nov 2018 23:49:40 +0000 (-0600) Subject: OpenZFS 9993 - zil writes can get delayed in zio pipeline X-Git-Tag: zfs-0.8.0-rc3~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18b14b17c854d56b1f952bb6e18a1e0ff1e8b813;p=zfs OpenZFS 9993 - zil writes can get delayed in zio pipeline Authored by: George Wilson Reviewed by: Prakash Surya Reviewed by: Brad Lewis Reviewed by: Matt Ahrens Reviewed by: Tom Caputi Reviewed by: George Melikov Approved by: Dan McDonald Ported-by: Brian Behlendorf OpenZFS-issue: https://www.illumos.org/issues/9993 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/2258ad0b Closes #8185 --- diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 6f1aa640d..86788b33f 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -1738,7 +1738,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++;