about summary refs log tree commit homepage
path: root/dev.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-05-29 07:27:56 +0000
committerEric Wong <e@80x24.org>2014-05-29 07:29:47 +0000
commitd1a90e506902150c7db1d525e71e5b6cd66744de (patch)
tree8f93c2d343c5090a2b5b86414631d9f1f2d8131d /dev.c
parent19a0fde65d8905f31e4ffaea531da4cefb02c29e (diff)
downloadcmogstored-khash.tar.gz
This reduces unnecessary boilerplate due to switching khash.
Diffstat (limited to 'dev.c')
-rw-r--r--dev.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/dev.c b/dev.c
index 15f651a..401236e 100644
--- a/dev.c
+++ b/dev.c
@@ -236,27 +236,8 @@ void mog_dev_free(struct mog_dev *dev)
         free(dev);
 }
 
-/*
- * Only called by the main/notify thread as a hash iterator function
- * This increases or decreases the capacity of a given device if a
- * a sidechannel user changes the worker thread pool size.
- */
-bool mog_dev_user_rescale_i(void *devp, void *svcp)
+void mog_dev_requeue_prepare(struct mog_dev *dev)
 {
-        struct mog_dev *dev = devp;
-        struct mog_svc *svc = svcp;
-
-        mog_ioq_adjust(&dev->ioq, svc->thr_per_dev);
-
-        return true; /* continue iteration */
-}
-
-bool mog_dev_requeue_prepare(void *devp, void *ign)
-{
-        struct mog_dev *dev = devp;
-
         mog_ioq_requeue_prepare(&dev->ioq);
         mog_ioq_requeue_prepare(&dev->fsckq);
-
-        return true; /* continue iteration */
 }