From 9d9e7ba9ee8f304c4608f3c81aa5e7fb3bddd251 Mon Sep 17 00:00:00 2001 From: Mike Marshall Date: Thu, 3 Mar 2016 13:46:48 -0500 Subject: Orangefs: improve gossip statements Signed-off-by: Mike Marshall --- fs/orangefs/devorangefs-req.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'fs/orangefs/devorangefs-req.c') diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c index d50f89ea302e..0f9a12ac7458 100644 --- a/fs/orangefs/devorangefs-req.c +++ b/fs/orangefs/devorangefs-req.c @@ -245,6 +245,12 @@ restart: * it has been sent to the client. */ set_op_state_inprogress(cur_op); + gossip_debug(GOSSIP_DEV_DEBUG, + "%s: 1 op:%s: op_state:%d: process:%s:\n", + __func__, + get_opname_string(cur_op), + cur_op->op_state, + current->comm); orangefs_devreq_add_op(cur_op); spin_unlock(&cur_op->lock); spin_unlock(&htable_ops_in_progress_lock); @@ -262,6 +268,12 @@ error: spin_lock(&cur_op->lock); if (likely(!op_state_given_up(cur_op))) { set_op_state_waiting(cur_op); + gossip_debug(GOSSIP_DEV_DEBUG, + "%s: 2 op:%s: op_state:%d: process:%s:\n", + __func__, + get_opname_string(cur_op), + cur_op->op_state, + current->comm); list_add(&cur_op->list, &orangefs_request_list); spin_unlock(&cur_op->lock); } else { @@ -416,6 +428,12 @@ wakeup: complete(&op->waitq); } else { set_op_state_serviced(op); + gossip_debug(GOSSIP_DEV_DEBUG, + "%s: op:%s: op_state:%d: process:%s:\n", + __func__, + get_opname_string(op), + op->op_state, + current->comm); spin_unlock(&op->lock); } return ret; -- cgit v1.2.3