avg-I commented on 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);
Than you for the suggestion. I decided to modify the code to use the more
compact form.
--
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#discussion_r138091522
------------------------------------------
openzfs-developer
Archives:
https://openzfs.topicbox.com/groups/developer/discussions/T2b9fdebe0c16de6b-M3530521e3a57d7b898405a42
Powered by Topicbox: https://topicbox.com