From: Jens Axboe Date: Mon, 30 Oct 2006 11:23:41 +0000 (+0100) Subject: [PATCH] Don't put_job() on def_thread X-Git-Tag: fio-1.8~24 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=549577a728fc3bacbfea8978c4f514cef5b073dc;ds=sidebyside [PATCH] Don't put_job() on def_thread It's not accounted. Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 58defbe2..1bcd4879 100644 --- a/init.c +++ b/init.c @@ -432,6 +432,9 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent) static void put_job(struct thread_data *td) { + if (td == &def_thread) + return; + memset(&threads[td->thread_number - 1], 0, sizeof(*td)); thread_number--; }