]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: Add GL_NOPID flag for process-independent glock holders
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Apr 2022 20:07:30 +0000 (22:07 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 29 Jun 2022 11:07:54 +0000 (13:07 +0200)
commitcbe6d2576e2cf7571e781439728ad31bdfd9dfcb
treeb570676ef08398c7f7f6daa69b5000042904efc0
parent56535dc695f8e215dffb9557d6bcbdf46ff785d2
gfs2: Add GL_NOPID flag for process-independent glock holders

Add a GL_NOPID flag to indicate that once a glock holder has been acquired, it
won't be associated with the current process anymore.  This is useful for iopen
and flock glocks which are associated with open files, as well as journal glock
holders and similar which are associated with the filesystem.

Once GL_NOPID is used for all applicable glocks (see the next patches),
processes will no longer be falsely reported as holding glocks which they are
not actually holding in the glocks dump file.  Unlike before, when a process is
reported as having "(ended)", this will indicate an actual bug.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h