about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmogstored.h')
-rw-r--r--cmogstored.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmogstored.h b/cmogstored.h
index bb7455d..7d32817 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -108,6 +108,7 @@ struct mog_wbuf;
 struct mog_dev {
         dev_t st_dev;
         uint32_t devid;
+        struct mog_ioq ioq;
         struct mog_ioq fsckq;
 };
 
@@ -302,7 +303,8 @@ enum mog_fd_type {
 
 /* fdmap.c */
 struct mog_fd {
-        enum mog_fd_type fd_type;
+        enum mog_fd_type fd_type:16;
+        uint16_t ioq_blocked;
         int fd;
         pthread_spinlock_t expiring;
         union {
@@ -628,3 +630,4 @@ void mog_ioq_init(struct mog_ioq *, struct mog_svc *, size_t val);
 bool mog_ioq_ready(struct mog_ioq *, struct mog_fd *) MOG_CHECK;
 void mog_ioq_next(struct mog_ioq *);
 void mog_ioq_destroy(struct mog_ioq *);
+bool mog_ioq_unblock(struct mog_fd *);