ahrens approved this pull request.


> @@ -1417,6 +1417,13 @@ zio_taskq_dispatch(zio_t *zio, zio_taskq_type_t q, 
> boolean_t cutinline)
        spa_t *spa = zio->io_spa;
        zio_type_t t = zio->io_type;
        int flags = (cutinline ? TQ_FRONT : 0);
+       zio_priority_t p = zio->io_priority;
+
+       ASSERT(q == ZIO_TASKQ_ISSUE || q == ZIO_TASKQ_INTERRUPT);
+       if (p == ZIO_PRIORITY_SYNC_WRITE)
+               ASSERT3U(t, ==, ZIO_TYPE_WRITE);

FYI, another way to do this is: `IMPLY(p == SYNC_WRITE, t == TYPE_WRITE)`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/438#pullrequestreview-61311784
------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/T2b9fdebe0c16de6b-Mde5a1b94742088a61ef59d07
Powered by Topicbox: https://topicbox.com

Reply via email to