fs: dlm: debug improvements print nodeid
This patch improves the debug output for midcomms layer by also printing out the nodeid where users counter belongs to. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
bb6866a5bd
commit
1aafd9c231
@ -1231,7 +1231,7 @@ void dlm_midcomms_add_member(int nodeid)
|
||||
}
|
||||
|
||||
node->users++;
|
||||
pr_debug("users inc count %d\n", node->users);
|
||||
pr_debug("node %d users inc count %d\n", nodeid, node->users);
|
||||
spin_unlock(&node->state_lock);
|
||||
|
||||
srcu_read_unlock(&nodes_srcu, idx);
|
||||
@ -1254,7 +1254,7 @@ void dlm_midcomms_remove_member(int nodeid)
|
||||
|
||||
spin_lock(&node->state_lock);
|
||||
node->users--;
|
||||
pr_debug("users dec count %d\n", node->users);
|
||||
pr_debug("node %d users dec count %d\n", nodeid, node->users);
|
||||
|
||||
/* hitting users count to zero means the
|
||||
* other side is running dlm_midcomms_stop()
|
||||
|
Loading…
Reference in New Issue
Block a user