Ensure that stat outputs are serialized
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Apr 2013 23:05:57 +0000 (17:05 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Apr 2013 23:05:57 +0000 (17:05 -0600)
commitcef9175e52e8a240117b9f45b228fdaa0f1c0572
tree21995e88a2b3d4f7aef7ff2ec0d70a932c925e63
parentfdd5f15f8231e8c91c4deff22e630a34addd0fef
Ensure that stat outputs are serialized

Two issues:

- We don't want potentially two stat outputs running at the same time.
  This could potentially happen if USR1 or interval stats race with
  the thread exit.

- We could potentially crash if the interval or USR1 signaled stat
  output trigger when fio is tearing down. Let the main thread wait
  for any in-progress output in that case.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
stat.c
stat.h