This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master in repository gfs2-utils.
commit eef121292d38694a31d49625b0ebf2eabc9c72a9 Author: Alexander Aring aahringo@redhat.com AuthorDate: Thu Mar 11 14:20:35 2021 -0500
glocktop: use MAX_LINES for dlmwlines
This patch uses MAX_LINES to handle 100 DLM waiters and above. There is still a limitation but very unlikely to hit.
Signed-off-by: Alexander Aring aahringo@redhat.com --- gfs2/glocktop/glocktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfs2/glocktop/glocktop.c b/gfs2/glocktop/glocktop.c index bd7fcf02..9df87d18 100644 --- a/gfs2/glocktop/glocktop.c +++ b/gfs2/glocktop/glocktop.c @@ -159,7 +159,7 @@ struct mount_point { struct gfs2_sb sb; }; struct mount_point *mounts; -char dlmwlines[100][96]; /* waiters lines */ +char dlmwlines[MAX_LINES][96]; /* waiters lines */ char dlmglines[MAX_LINES][97]; /* granted lines */ char contended_filenames[MAX_FILES][PATH_MAX]; unsigned long long contended_blocks[MAX_FILES];