From 806d1c76a2d057f2d9e0f105e95b4ae29b69a799 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 28 Apr 2015 09:02:52 +1000 Subject: [PATCH] Do not create a stratifier statsupdate thread in passthrough mode since the stats always read zero --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 6b4ee37b..356f032d 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -4531,7 +4531,8 @@ int stratifier(proc_instance_t *pi) create_pthread(&pth_blockupdate, blockupdate, ckp); mutex_init(&sdata->stats_lock); - create_pthread(&pth_statsupdate, statsupdate, ckp); + if (!ckp->passthrough) + create_pthread(&pth_statsupdate, statsupdate, ckp); mutex_init(&sdata->share_lock); mutex_init(&sdata->block_lock);