about summary refs log tree commit homepage
path: root/svc.c
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 /svc.c
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 'svc.c')
-rw-r--r--svc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/svc.c b/svc.c
index 24d90fd..47fb9f7 100644
--- a/svc.c
+++ b/svc.c
@@ -169,6 +169,7 @@ void mog_svc_thrpool_rescale(struct mog_svc *svc, size_t ndev_new)
 
         /* respect user-setting */
         if (svc->user_set_aio_threads) {
+                mog_svc_dev_user_rescale(svc, ndev_new);
                 if (tp->n_threads >= ndev_new)
                         return;
 
@@ -291,6 +292,8 @@ void mog_svc_aio_threads_handler(void)
 
                 syslog(LOG_INFO, "server aio_threads=%zu", req_size);
                 svc->user_set_aio_threads = req_size;
+                if (svc->nmogdev)
+                        mog_svc_dev_user_rescale(svc, svc->nmogdev);
                 mog_thrpool_set_size(&svc->queue->thrpool, req_size);
         }
 }