signal condition variable at end of stop_tracers
authorRobert Schiele <rschiele@gmail.com>
Mon, 8 Sep 2014 07:38:52 +0000 (09:38 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 8 Sep 2014 14:15:58 +0000 (08:15 -0600)
commit838361c6cfb1319eadd59daaf9074dcdb92746e6
tree7d9329ee8d218e8e58b7b985df2389fddad4b496
parentce9ded7165b846598b28107ceb2864ae1ad4b652
signal condition variable at end of stop_tracers

stop_tracers modifies tp->is_done and thus must signal the condition
variable tracer_wait_unblock is waiting on to monitor tp->is_done.
Not doing so might cause the tool to deadlock if stop_tracers is
called while a tracer thread is in tracer_wait_unblock.

Signed-off-by: Robert Schiele <rschiele@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
blktrace.c