about summary refs log tree commit homepage
path: root/dev.c
diff options
context:
space:
mode:
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 */
 }