From: Jens Axboe Date: Fri, 14 Jan 2011 17:29:19 +0000 (+0100) Subject: Eta/disk thread uses more than the minimum stack X-Git-Tag: fio-1.50-rc3~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=69204d6e8830464bc98fcc28ca91412d6d360775 Eta/disk thread uses more than the minimum stack Causes crashes on FreeBSD. Just kill it, it's only really important on the threads we potentially create tons of. Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 9d9027d7..067aa245 100644 --- a/fio.c +++ b/fio.c @@ -146,13 +146,9 @@ static void *disk_thread_main(void *data) static int create_disk_util_thread(void) { - pthread_attr_t attr; int ret; - pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN); - ret = pthread_create(&disk_util_thread, &attr, disk_thread_main, NULL); - pthread_attr_destroy(&attr); + ret = pthread_create(&disk_util_thread, NULL, disk_thread_main, NULL); if (ret) { log_err("Can't create disk util thread: %s\n", strerror(ret)); return 1;