diff options
Diffstat (limited to 'dev.c')
-rw-r--r-- | dev.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -245,3 +245,18 @@ void mog_dev_free(void *ptr) mog_ioq_destroy(&dev->ioq); 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) +{ + struct mog_dev *dev = devp; + struct mog_svc *svc = svcp; + + mog_ioq_adjust(&dev->ioq, svc->thr_per_dev); + + return true; /* continue iteration */ +} |