projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2aeedb
)
Fix crash on threads being reaped before they are created
author
Jens Axboe
<axboe@fb.com>
Mon, 10 Nov 2014 21:08:50 +0000
(14:08 -0700)
committer
Jens Axboe
<axboe@fb.com>
Mon, 10 Nov 2014 21:08:50 +0000
(14:08 -0700)
If we do that, then ->rusage_sem is never allocated.
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c
patch
|
blob
|
blame
|
history
diff --git
a/backend.c
b/backend.c
index 59a14d126d2010e0df47caaeb180b57c030c086a..a93c458a9393e609371642d94e5900518327015e 100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-2105,8
+2105,10
@@
int fio_backend(void)
for_each_td(td, i) {
fio_options_free(td);
- fio_mutex_remove(td->rusage_sem);
- td->rusage_sem = NULL;
+ if (td->rusage_sem) {
+ fio_mutex_remove(td->rusage_sem);
+ td->rusage_sem = NULL;
+ }
}
free_disk_util();