Skip to content
Commit 56535dc6 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Add flocks to glockfd debugfs file



Include flock glocks in the "glockfd" debugfs file.  Those are similar to the
iopen glocks; while an open file is holding an flock, it is holding the file's
flock glock.

We cannot take f_fl_mutex in gfs2_glockfd_seq_show_flock() or else dumping the
"glockfd" file would block on flock operations.  Instead, use the file->f_lock
spin lock to protect the f_fl_gh.gh_gl glock pointer.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 4480c27c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment