Re: [PATCH v2 02/24] fs/locks: print full locks information

2021-02-24 Thread J. Bruce Fields
On Wed, Feb 24, 2021 at 03:35:44AM -0500, Luo Longjun wrote: > @@ -2912,17 +2922,66 @@ static int locks_show(struct seq_file *f, void *v) > struct file_lock *fl, *bfl; > struct pid_namespace *proc_pidns = > proc_pid_ns(file_inode(f->file)->i_sb); > > + struct list_head root; > +

[PATCH v2 02/24] fs/locks: print full locks information

2021-02-24 Thread Luo Longjun
Commit fd7732e033e3 ("fs/locks: create a tree of dependent requests.") has put blocked locks into a tree. So, with a for loop, we can't check all locks information. To solve this problem, we should traverse the tree by non-recursion DFS. Signed-off-by: Luo Longjun --- fs/locks.c | 75 +