summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-01-14 18:29:19 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-14 18:29:19 +0100
commit69204d6e8830464bc98fcc28ca91412d6d360775 (patch)
tree9cae59c632b2518067438f25a999868f07161a9b
parentefda12bde9d13663e5cfe4ddf677bae54075fd92 (diff)
downloadfio-69204d6e8830464bc98fcc28ca91412d6d360775.tar.gz
fio-69204d6e8830464bc98fcc28ca91412d6d360775.tar.bz2
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 <jaxboe@fusionio.com>
-rw-r--r--fio.c6
1 files changed, 1 insertions, 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;