Eta/disk thread uses more than the minimum stack
authorJens Axboe <jaxboe@fusionio.com>
Fri, 14 Jan 2011 17:29:19 +0000 (18:29 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 14 Jan 2011 17:29:19 +0000 (18:29 +0100)
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 <jaxboe@fusionio.com>
fio.c

diff --git a/fio.c b/fio.c
index 9d9027d792e4ccbb8cd4f6469b89b88ed210b6e0..067aa245a04e9d3dd63d2a020b2f72cd33aad975 100644 (file)
--- 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;