diff options
author | aw148015 <Andrew.W.Wilson@sun.com> | 2009-04-09 16:08:05 -0700 |
---|---|---|
committer | aw148015 <Andrew.W.Wilson@sun.com> | 2009-04-09 16:08:05 -0700 |
commit | 3bf88a3dd4bc5964f3c0b9a38e88bca9973a439e (patch) | |
tree | 03bb200ebbab950b4951a00c9e0c3dfc63dc8db2 /usr/src/cmd/filebench/common/misc.c | |
parent | ed141cfca535fc26451c4bd9a2cfb6172af449c2 (diff) | |
download | illumos-gate-3bf88a3dd4bc5964f3c0b9a38e88bca9973a439e.tar.gz |
6584939 filebench should be smarter about how its opening files
6685196 need stricter fd/filename checking so workload writers don't get confused
6601215 Filebench needs to allow specification of a "warmup" period
6786324 need way to reuse fileset without first checking every file
6827860 FileBench is occasionally slow to exit hangs while exiting
Diffstat (limited to 'usr/src/cmd/filebench/common/misc.c')
-rw-r--r-- | usr/src/cmd/filebench/common/misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/cmd/filebench/common/misc.c b/usr/src/cmd/filebench/common/misc.c index 6f2eb4db2f..1b5c2868a4 100644 --- a/usr/src/cmd/filebench/common/misc.c +++ b/usr/src/cmd/filebench/common/misc.c @@ -336,7 +336,14 @@ filebench_shutdown(int error) { if (error) { filebench_log(LOG_DEBUG_IMPL, "Shutdown on error"); + (void) ipc_mutex_lock(&filebench_shm->shm_procflow_lock); + if (filebench_shm->shm_f_abort == FILEBENCH_ABORT_FINI) { + (void) ipc_mutex_unlock( + &filebench_shm->shm_procflow_lock); + return; + } filebench_shm->shm_f_abort = FILEBENCH_ABORT_ERROR; + (void) ipc_mutex_unlock(&filebench_shm->shm_procflow_lock); } else { filebench_log(LOG_DEBUG_IMPL, "Shutdown"); } |