commit | 04247864f004c0a20ceb9fb0c0ce3c3a3c512326 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Thu Oct 23 23:04:37 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:25 2015 -0800 |
tree | dfa4faa39595b332c4f91747ab443dbf9b431189 | |
parent | fdb0da8028e156c0da43aca18e1423d1b300bdad [diff] [blame] |
stat: avoid hang with race in stat thread exit and rusage update Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/stat.c b/stat.c index a5fd50b..3aae76d 100644 --- a/stat.c +++ b/stat.c
@@ -1451,6 +1451,8 @@ } for_each_td(td, i) { + if (td->runstate >= TD_EXITED) + continue; if (td->rusage_sem) { td->update_rusage = 1; fio_mutex_down(td->rusage_sem);