summaryrefslogtreecommitdiff
path: root/usr/src/cmd/filebench/common/threadflow.c
diff options
context:
space:
mode:
authoraw148015 <Andrew.W.Wilson@sun.com>2008-09-11 09:49:27 -0700
committeraw148015 <Andrew.W.Wilson@sun.com>2008-09-11 09:49:27 -0700
commitcee30eb55f2a7e49c264b336538386ea84fe5807 (patch)
tree13b02c6a4be3459f6302652133e66ba24f4ddb58 /usr/src/cmd/filebench/common/threadflow.c
parentc7ee0b5c5eb7b17e7ef152313d57f97c2fee7416 (diff)
downloadillumos-joyent-cee30eb55f2a7e49c264b336538386ea84fe5807.tar.gz
6695801 fileset_pick() lock contention with many threads
6711285 perf regression with (lots of) robust locks since robust locks got revisited (PSARC 2007/285) 6713973 flowoplib_statfile() doesn't actually stat 6714502 filebench parallel fileset creation code leaves large number of zombie threads 6716638 _THREAD_ERROR_DETECTION failure in filebench
Diffstat (limited to 'usr/src/cmd/filebench/common/threadflow.c')
-rw-r--r--usr/src/cmd/filebench/common/threadflow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/cmd/filebench/common/threadflow.c b/usr/src/cmd/filebench/common/threadflow.c
index bcbf243272..0d903cb367 100644
--- a/usr/src/cmd/filebench/common/threadflow.c
+++ b/usr/src/cmd/filebench/common/threadflow.c
@@ -25,8 +25,6 @@
* Portions Copyright 2008 Denis Cheng
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "config.h"
#include <pthread.h>
#ifdef HAVE_LWPS
@@ -426,7 +424,8 @@ threadflow_define_common(procflow_t *procflow, char *name,
threadflow->tf_instance = instance;
(void) strcpy(threadflow->tf_name, name);
threadflow->tf_process = procflow;
- (void) pthread_mutex_init(&threadflow->tf_lock, ipc_mutexattr());
+ (void) pthread_mutex_init(&threadflow->tf_lock,
+ ipc_mutexattr(IPC_MUTEX_NORMAL));
filebench_log(LOG_DEBUG_IMPL, "Defining thread %s-%d",
name, instance);