From: Alexander Aring Date: Thu, 11 Mar 2021 14:20:35 -0500 Subject: [Cluster-devel] [PATCH gfs2-utils 1/2] glocktop: use MAX_LINES for dlmwlines In-Reply-To: <20210311192036.17218-1-aahringo@redhat.com> References: <20210311192036.17218-1-aahringo@redhat.com> Message-ID: <20210311192036.17218-2-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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]; -- 2.26.2