about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-11 22:15:56 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-12 00:21:06 +0000
commite50365f275ada4afcd5f25f2ac3328e341a79d71 (patch)
tree0e0d1b5ee52424ab2c0fa125b4f31fedbd83e2a4 /cmogstored.h
parentf83d0466afc32542f3f4ff962105c817a1be2c96 (diff)
downloadcmogstored-e50365f275ada4afcd5f25f2ac3328e341a79d71.tar.gz
Users reducing or increasing thread counts should increase
ioq capacity, otherwise there's no point in having more or
less threads if they are synched to the ioq capacity.
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 487a70d..182568c 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -374,6 +374,7 @@ int mog_dev_mkusage(const struct mog_dev *, struct mog_svc *);
 size_t mog_dev_hash(const void *, size_t tablesize);
 bool mog_dev_cmp(const void *a, const void *b);
 void mog_dev_free(void *devptr);
+bool mog_dev_user_rescale_i(void *devp, void *svcp);
 
 /* valid_path.rl */
 int mog_valid_path(const char *buf, size_t len);
@@ -396,6 +397,7 @@ bool mog_svc_devstats_broadcast(void *svc, void *ignored);
 void mog_svc_devstats_subscribe(struct mog_mgmt *);
 void mog_svc_dev_shutdown(void);
 void mog_mkusage_all(void);
+void mog_svc_dev_user_rescale(struct mog_svc *, size_t ndev_new);
 
 /* cloexec_detect.c */
 extern bool mog_cloexec_atomic;
@@ -639,5 +641,6 @@ 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;
 bool mog_ioq_contended(void) MOG_CHECK;
 void mog_ioq_next(struct mog_ioq *);
+void mog_ioq_adjust(struct mog_ioq *, unsigned value);
 void mog_ioq_destroy(struct mog_ioq *);
 bool mog_ioq_unblock(struct mog_fd *);