A kernel warning will be triggered,during copy a big file into zstd compressed btrfs filesystem

2017-12-05 Thread guoxuenan
Hi all, I have found a kernel warning of btrfs ,during run my shell script in qemu qemu virtual machine. Linux mainline version Linux 4.15-rc2 (ae64f9bd) The script try to copy a big file(15G) into btrfs filesystem,when I login virtual machine,then run the script,A kernel warning will be

A kernel warning will be triggered,during copy a big file into zstd compressed btrfs filesystem

2017-12-05 Thread guoxuenan
Hi all, I have found a kernel warning of btrfs ,during run my shell script in qemu qemu virtual machine. Linux mainline version Linux 4.15-rc2 (ae64f9bd) The script try to copy a big file(15G) into btrfs filesystem,when I login virtual machine,then run the script,A kernel warning will be

Re: [PATCH] mm,madvise: bugfix of madvise systemcall infinite loop under special circumstances.

2017-11-27 Thread guoxuenan
Of course! Thank you, you save my poor english :). 在 2017/11/27 19:58, Michal Hocko 写道: On Mon 27-11-17 19:53:18, guoxuenan wrote: From: chenjie <chenj...@huawei.com> The madvise() system call supported a set of "conventional" advice values, the MADV_WILLNEED parameter

Re: [PATCH] mm,madvise: bugfix of madvise systemcall infinite loop under special circumstances.

2017-11-27 Thread guoxuenan
Of course! Thank you, you save my poor english :). 在 2017/11/27 19:58, Michal Hocko 写道: On Mon 27-11-17 19:53:18, guoxuenan wrote: From: chenjie The madvise() system call supported a set of "conventional" advice values, the MADV_WILLNEED parameter has possibility of triggering a

[PATCH] mm,madvise: bugfix of madvise systemcall infinite loop under special circumstances.

2017-11-27 Thread guoxuenan
cle ;it will always keep vam->vm_start < start = vam->vm_end < end && vma = prev->vm_next; since Circulation exit conditions (con{0,1,2}) will never meet ,the program stuck in infinite loop. Signed-off-by: chenjie <chenj...@huawei.com> Signed-off-by: guoxuenan <gu

[PATCH] mm,madvise: bugfix of madvise systemcall infinite loop under special circumstances.

2017-11-27 Thread guoxuenan
vam->vm_start < start = vam->vm_end < end && vma = prev->vm_next; since Circulation exit conditions (con{0,1,2}) will never meet ,the program stuck in infinite loop. Signed-off-by: chenjie Signed-off-by: guoxuenan --- mm/madvise.c | 4 +--- 1 file changed, 1 insertion(+

[PATCH] mm,madvise: bugfix of madvise systemcall infinite loop under special circumstances.

2017-11-23 Thread guoxuenan
ram stuck in infinite loop. Signed-off-by: chenjie <chenj...@huawei.com> Signed-off-by: guoxuenan <guoxue...@huawei.com> --- mm/madvise.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/madvise.c b/mm/madvise.c index 21261ff..c355fee 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -294,6

[PATCH] mm,madvise: bugfix of madvise systemcall infinite loop under special circumstances.

2017-11-23 Thread guoxuenan
change,[vma] keep as it was; update [ vma = prev->vm_next ] } === After the first cycle ;it will always keep [ vam->vm_start < start = vam->vm_end < end ]. since Circulation exit conditions (con{0,1,2}) will never meet ,the program stuck in infinite loop. Sig