diff options
author | Eric Wong <e@80x24.org> | 2014-05-29 07:27:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-05-29 07:29:47 +0000 |
commit | d1a90e506902150c7db1d525e71e5b6cd66744de (patch) | |
tree | 8f93c2d343c5090a2b5b86414631d9f1f2d8131d /dev.c | |
parent | 19a0fde65d8905f31e4ffaea531da4cefb02c29e (diff) | |
download | cmogstored-khash.tar.gz |
This reduces unnecessary boilerplate due to switching khash.
Diffstat (limited to 'dev.c')
-rw-r--r-- | dev.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -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 */ } |