gettime: remember to tear down clock cpumask on normal exit
authorJens Axboe <axboe@fb.com>
Thu, 29 Jan 2015 17:23:39 +0000 (09:23 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 29 Jan 2015 17:23:39 +0000 (09:23 -0800)
Signed-off-by: Jens Axboe <axboe@fb.com>
gettime.c

index 8bc84139a92d75abddb4eaa5b1c1c503450382a1..6863ce3f97cef140e967990b9b8a7dc0bf3b0126 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -528,6 +528,7 @@ static void *clock_thread_fn(void *data)
        if (!t->entries[i - 1].tsc && !t->entries[0].tsc)
                goto err;
 
        if (!t->entries[i - 1].tsc && !t->entries[0].tsc)
                goto err;
 
+       fio_cpuset_exit(&cpu_mask);
        return NULL;
 err:
        fio_cpuset_exit(&cpu_mask);
        return NULL;
 err:
        fio_cpuset_exit(&cpu_mask);