Re: [Ocfs2-devel] [PATCH] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-07-06 Thread Eric Ren
Hi Joseph, On 07/06/2016 12:21 PM, Joseph Qi wrote: > NAK, if ocfs2_try_to_free_truncate_log fails, it will lead to double > ocfs2_inode_unlock and then BUG. Thanks for pointing out this! Will fix this and resend. Eric > > On 2016/6/22 17:07, Eric Ren wrote: >> The testcase "mmaptruncate" in

Re: [Ocfs2-devel] [PATCH] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-07-05 Thread Joseph Qi
NAK, if ocfs2_try_to_free_truncate_log fails, it will lead to double ocfs2_inode_unlock and then BUG. On 2016/6/22 17:07, Eric Ren wrote: > The testcase "mmaptruncate" in ocfs2 test suite always fails with > ENOSPC error on small volume (say less than 10G). This testcase > creates 2 threads T1/T2

Re: [Ocfs2-devel] [PATCH] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-06-28 Thread Joseph Qi
Looks good to me, thanks. Reviewed-by: Joseph Qi On 2016/6/22 17:07, Eric Ren wrote: > The testcase "mmaptruncate" in ocfs2 test suite always fails with > ENOSPC error on small volume (say less than 10G). This testcase > creates 2 threads T1/T2 which race to

Re: [Ocfs2-devel] [PATCH] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-06-23 Thread Gang He
Reviewed-by: Gang He Thanks Gang >>> > The testcase "mmaptruncate" in ocfs2 test suite always fails with > ENOSPC error on small volume (say less than 10G). This testcase > creates 2 threads T1/T2 which race to "truncate"/"extend" a same > file repeatedly. Specifically, T1

[Ocfs2-devel] [PATCH] ocfs2: retry on ENOSPC if sufficient space in truncate log

2016-06-22 Thread Eric Ren
The testcase "mmaptruncate" in ocfs2 test suite always fails with ENOSPC error on small volume (say less than 10G). This testcase creates 2 threads T1/T2 which race to "truncate"/"extend" a same file repeatedly. Specifically, T1 truncates 1/2 size of a small file while T2 extend to 100% size. The