From: Jens Axboe Date: Thu, 14 Jul 2016 17:36:12 +0000 (-0700) Subject: pthread: bump min stack size X-Git-Tag: fio-2.13~15 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=45213f1b15f820e6791118b7200a1185e2af7d87;p=fio.git pthread: bump min stack size For some reason fio fails to create a thread with the stack size set to the minimum. For now, let's just bump it to 2x the min size, that seems to work... Signed-off-by: Jens Axboe --- diff --git a/gettime-thread.c b/gettime-thread.c index 6dc14864..19541b47 100644 --- a/gettime-thread.c +++ b/gettime-thread.c @@ -71,7 +71,7 @@ int fio_start_gtod_thread(void) return 1; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN); + pthread_attr_setstacksize(&attr, 2 * PTHREAD_STACK_MIN); ret = pthread_create(>od_thread, &attr, gtod_thread_main, mutex); pthread_attr_destroy(&attr); if (ret) { diff --git a/verify.c b/verify.c index 58f37aef..9a96fbb3 100644 --- a/verify.c +++ b/verify.c @@ -1290,7 +1290,7 @@ int verify_async_init(struct thread_data *td) pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN); + pthread_attr_setstacksize(&attr, 2 * PTHREAD_STACK_MIN); td->verify_thread_exit = 0;