From dbb5541a0c45312e7bfbd7c27943245bd3c65bcd Mon Sep 17 00:00:00 2001 From: Mark Fasheh Date: Fri, 17 Nov 2017 17:49:48 -0600 Subject: [PATCH] scoutfs: locking_state needs to include cwmode stats This was inadvertantly left out of the main CW locking commit. We simply need to seq_print the new fields. We add them to the end of the line, thus preserving backwards compatibility with old versions of the debug format. Signed-off-by: Mark Fasheh --- kmod/src/dlmglue.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kmod/src/dlmglue.c b/kmod/src/dlmglue.c index 6eb5ba79..edde124d 100644 --- a/kmod/src/dlmglue.c +++ b/kmod/src/dlmglue.c @@ -1889,6 +1889,17 @@ static int ocfs2_dlm_seq_show(struct seq_file *m, void *v) lock_max_exmode(lockres), lock_refresh(lockres)); + seq_printf(m, "%u\t" + "%u\t" + "%u\t" + "%llu\t" + "%u\t", + lockres->l_cw_holders, + lock_num_cwmode(lockres), + lock_num_cwmode_failed(lockres), + lock_total_cwmode(lockres), + lock_max_cwmode(lockres)); + /* End the line */ seq_printf(m, "\n"); return 0;