From a507505d00ce6cf9e5e91f27ec0bbfe52754c9dc Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 19 May 2016 09:19:56 -0600 Subject: [PATCH 1/1] backend: dump state of stuck thread Signed-off-by: Jens Axboe --- backend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index 56909f42..243ddd39 100644 --- a/backend.c +++ b/backend.c @@ -1815,8 +1815,9 @@ static int fork_main(struct sk_out *sk_out, int shmid, int offset) static void dump_td_info(struct thread_data *td) { - log_err("fio: job '%s' hasn't exited in %lu seconds, it appears to " - "be stuck. Doing forceful exit of this job.\n", td->o.name, + log_err("fio: job '%s' (state=%d) hasn't exited in %lu seconds, it " + "appears to be stuck. Doing forceful exit of this job.\n", + td->o.name, td->runstate, (unsigned long) time_since_now(&td->terminate_time)); } -- 2.25.1