Re: [Ocfs2-devel] [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-10 Thread Gang He
Hello Joseph, Changwei and Jun/Alex, Please help to take a look at this patch, since the previous patch really has vulnerability in logic, although our test cases did not hit it. Thanks Gang >>> Larry Chen 2018/5/10 13:32 >>> ocfs2_inode_lock_tracker as a variant of

Re: [Ocfs2-devel] [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-10 Thread Andrew Morton
On Thu, 10 May 2018 13:32:30 +0800 Larry Chen wrote: > ocfs2_inode_lock_tracker as a variant of ocfs2_inode_lock, > is used to prevent deadlock due to recursive lock acquisition. > > But this function does not distinguish > whether the requested level is EX or PR. > > If a RP

Re: [Ocfs2-devel] [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-10 Thread Larry Chen
Hello Andrew, On 05/11/2018 05:49 AM, Andrew Morton wrote: > On Thu, 10 May 2018 13:32:30 +0800 Larry Chen wrote: > >> ocfs2_inode_lock_tracker as a variant of ocfs2_inode_lock, >> is used to prevent deadlock due to recursive lock acquisition. >> >> But this function does not

[Ocfs2-devel] [PATCH V2] ocfs2: Correct the comments position of the structure ocfs2_dir_block_trailer.

2018-05-10 Thread Guozhonghua
Correct the comments position of the structure ocfs2_dir_block_trailer. Signed-off-by: guozhonghua --- fs/ocfs2/ocfs2_fs.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h index 5bb4a89..7071ad0 100644