diff options
Diffstat (limited to 'svc.c')
-rw-r--r-- | svc.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -163,9 +163,9 @@ void mog_svc_upgrade_prepare(void) } /* this is only called by the main (notify) thread */ -void mog_svc_thrpool_rescale(struct mog_svc *svc, size_t ndev_new) +void mog_svc_thrpool_rescale(struct mog_svc *svc, unsigned ndev_new) { - size_t size = ndev_new * svc->thr_per_dev; + unsigned size = ndev_new * svc->thr_per_dev; struct mog_thrpool *tp = &svc->queue->thrpool; /* respect user-setting */ @@ -175,7 +175,7 @@ void mog_svc_thrpool_rescale(struct mog_svc *svc, size_t ndev_new) return; syslog(LOG_WARNING, - "server aio_threads=%zu is less than devcount=%zu", + "server aio_threads=%u is less than devcount=%u", tp->n_threads, ndev_new); return; @@ -186,7 +186,7 @@ void mog_svc_thrpool_rescale(struct mog_svc *svc, size_t ndev_new) if (svc->nmogdev) syslog(LOG_INFO, - "devcount(%zu->%zu), updating server aio_threads=%zu", + "devcount(%u->%u), updating server aio_threads=%u", svc->nmogdev, ndev_new, size); mog_thrpool_set_size(tp, size); } @@ -248,9 +248,9 @@ bool mog_svc_start_each(void *svc_ptr, void *main_ptr) * * Called by threads inside the thrpool to wake-up the main/notify thread. */ -void mog_svc_aio_threads_enqueue(struct mog_svc *svc, size_t size) +void mog_svc_aio_threads_enqueue(struct mog_svc *svc, unsigned size) { - size_t prev_enq; + unsigned prev_enq; CHECK(int, 0, pthread_mutex_lock(&aio_threads_lock)); @@ -273,7 +273,7 @@ void mog_svc_aio_threads_handler(void) /* guard against requests bundled in one wakeup by looping here */ for (;;) { - size_t req_size = 0; + unsigned req_size = 0; CHECK(int, 0, pthread_mutex_lock(&aio_threads_lock)); svc = SIMPLEQ_FIRST(&aio_threads_qhead); @@ -291,7 +291,7 @@ void mog_svc_aio_threads_handler(void) if (svc == NULL || req_size == 0) return; - syslog(LOG_INFO, "server aio_threads=%zu", req_size); + syslog(LOG_INFO, "server aio_threads=%u", req_size); svc->user_set_aio_threads = req_size; if (svc->nmogdev) mog_svc_dev_user_rescale(svc, svc->nmogdev); |