From: Bob Peterson Date: Fri, 19 Mar 2021 08:40:09 -0400 (EDT) Subject: [Cluster-devel] [GFS2 PATCH] gfs2: Add new sysfs file for gfs2 status In-Reply-To: <31cdea6d-6926-6f87-f8ab-6594a4a9e7c6@redhat.com> References: <720686359.64750132.1616155577098.JavaMail.zimbra@redhat.com> <31cdea6d-6926-6f87-f8ab-6594a4a9e7c6@redhat.com> Message-ID: <797909222.64763856.1616157609288.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, ----- Original Message ----- > On 19/03/2021 12:06, Bob Peterson wrote: > > This patch adds a new file: /sys/fs/gfs2/*/status which will report > > the status of the file system. Catting this file dumps the current > > status of the file system according to various superblock variables. > > For example: > > It looks like it might be missing some locking on some of those variables? > > Steve. Yes that's true, but the absence of locking is by design. The new sysfs file is only for debugging purposes, mostly to help us debug livelocks and deadlocks. But in deadlock situations, it's quite likely you won't be able to acquire the proper locks. Hopefully this new file may be captured by sos reports at some point, or checked by insights rules, and we can't have those things deadlocking. The way I see it, it's better to get possibly inaccurate values than to have your access of the sysfs file deadlock itself. Partial information is better than no information, if you see what I mean. At least we can tell if things are still changing and the status of the locks, and such. In previous incarnations of this patch, I dumped the ail lists, which is also valuable, but to do that, we absolutely need the locking to ensure we don't access freed memory and such. This version avoids all that possibility, so the locking isn't as important. Unless, of course, I'm failing to take something into account. Regards, Bob Peterson