about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-06-21 03:34:28 +0000
committerEric Wong <normalperson@yhbt.net>2013-06-25 22:05:48 +0000
commit328623972837345dbcf3ed372293201e3bc4fe3c (patch)
treee3385166859612c64b1d4e34f44a61e70b91149c /cmogstored.h
parent40f84cd0924958c619d434a9147e7ed2b6abaadc (diff)
downloadcmogstored-328623972837345dbcf3ed372293201e3bc4fe3c.tar.gz
This should prevent one class of "accidental" failures.
(The sidechannel has never been meant to be secure and exposed
 to the public).
Diffstat (limited to 'cmogstored.h')
-rw-r--r--cmogstored.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h
index bc6ee59..a91f393 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -135,11 +135,13 @@ struct mog_mgmt {
 };
 
 struct mog_queue;
+struct mog_svc;
 struct mog_svc {
         int docroot_fd;
         const char *docroot;
         size_t nmogdev;
         size_t user_set_aio_threads; /* only touched by main/notify thread */
+        size_t user_req_aio_threads; /* protected by aio_threads_lock */
         size_t thr_per_dev;
 
         /* private */
@@ -150,6 +152,7 @@ struct mog_svc {
         pthread_mutex_t devstats_lock;
         struct mog_queue *queue;
         LIST_HEAD(mgmt_head, mog_mgmt) devstats_subscribers;
+        SIMPLEQ_ENTRY(mog_svc) qentry;
         mode_t put_perms;
         mode_t mkcol_perms;
         struct mog_fd *http_mfd;