about summary refs log tree commit homepage
path: root/ioq.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-26 05:59:18 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-26 06:14:28 +0000
commit1aef50d0091d1e710648ccade913ea80238520d9 (patch)
treedc8b9aafd58ae1dc1bf7ba1dc6a224d06494fec5 /ioq.c
parent596dbef8b4b23657fd78dca4bc55e261c3f6b376 (diff)
downloadcmogstored-st-wip-broken.tar.gz
Diffstat (limited to 'ioq.c')
-rw-r--r--ioq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ioq.c b/ioq.c
index 339ef3d..78a9ba7 100644
--- a/ioq.c
+++ b/ioq.c
@@ -100,6 +100,7 @@ bool mog_ioq_ready(struct mog_ioq *ioq, struct mog_fd *mfd)
 
                 mog_ioq_current = ioq;
         } else {
+                TRACE(CMOGSTORED_IOQ_BLOCKED(mfd->fd));
                 mfd->ioq_blocked = 1;
                 SIMPLEQ_INSERT_TAIL(&ioq->ioq_head, mfd, ioqent);
                 ioq_set_contended(ioq);
@@ -213,6 +214,7 @@ bool mog_ioq_unblock(struct mog_fd *mfd)
         if (mfd->ioq_blocked == 0)
                 return false;
 
+        TRACE(CMOGSTORED_IOQ_UNBLOCKED(mfd->fd));
         mfd->ioq_blocked = 0;
         return true;
 }