From 69204d6e8830464bc98fcc28ca91412d6d360775 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 14 Jan 2011 18:29:19 +0100 Subject: [PATCH] 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 --- fio.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.25.1