ioctl FIBMAP for dax gone in v4.17-rc1

2018-04-17 Thread Xiong Zhou
Hi, FIBMAP ioctl call to file in pmem dax mountpoint, both xfs and ext4, starts to fail on v4.17-rc1 Linus tree. +fibmap: Invalid argument Pass on v4.16. Pass on non-dax mountpoint. We got these in v4.17-rc1: 6e2608d xfs, dax: introduce xfs_dax_aops fb094c9 ext2, dax: introduce ext2_dax_aops 5

Re: Can't hit dax pmd fault on nvdimm in raw mode

2018-04-04 Thread Xiong Zhou
On Wed, Apr 04, 2018 at 07:48:23AM -0700, Dan Williams wrote: > On Wed, Apr 4, 2018 at 7:37 AM, Xiong Zhou wrote: > > Hi, > > > > It works fine in memory mode. Both tested on latest Linus tree with xfs. > > > > Referring https://nvdimm.wiki.kernel.org/2mib_f

nvml/pmdk libvmmaloc segmentation fault when exit

2018-02-05 Thread Xiong Zhou
Hi, This happens when testing nvml or pmdk libvmmalloc library: + dmesg [12890.676033] traps: test_libvmmallo[15789] general protection ip:7f3f01481a31 sp:7ffd85f4b7a0 error:0 in libvmmalloc.so.1.0.0[7f3f0146d000+3e000] gdb output: Program received signal SIGSEGV, Segmentation fault. 0x7

Re: ffsb job does not exit on xfs 4.14-rc1+

2017-10-12 Thread Xiong Zhou
On Thu, Oct 12, 2017 at 08:10:10AM +1100, Dave Chinner wrote: > On Wed, Oct 11, 2017 at 09:54:15PM +0800, Xiong Zhou wrote: > > On Mon, Sep 25, 2017 at 10:49:03AM +0200, Carlos Maiolino wrote: > > > On Mon, Sep 25, 2017 at 01:40:06AM +, Xiong Zhou wrote: > > > >

Re: [PATCH v2 2/2] dax: add regression test for stale mmap reads

2017-04-26 Thread Xiong Zhou
On Tue, Apr 25, 2017 at 02:51:06PM -0600, Ross Zwisler wrote: > This adds a regression test for the following kernel patch: > > dax: fix data corruption due to stale mmap reads > > The above patch fixes an issue where users of DAX can suffer data > corruption from stale mmap reads via the follo

Re: [PATCH] test: add fio test for device-dax

2017-03-29 Thread Xiong Zhou
Ccing Eryu On Wed, Mar 29, 2017 at 02:12:25PM -0700, Dan Williams wrote: > On Wed, Mar 29, 2017 at 2:04 PM, Jeff Moyer wrote: > > Dan Williams writes: > > > >>> Can we stop with this kernel version checking, please? Test to see if > >>> you can create a device dax instance. If not, ski

fsx tests on DAX started to fail with msync failure on 0307 -next tree

2017-03-13 Thread Xiong Zhou
Hi, xfstests cases: generic/075 generic/112 generic/127 generic/231 generic/263 fail with DAX, pass without it. Both xfs and ext4. It was okay on 0306 -next tree. + ./check generic/075 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 hp-dl360g9-12 4.11.0-rc1-linux-next-5be4921-ne

Re: read failure (was Re: mmap dio write failure)

2017-02-23 Thread Xiong Zhou
On Wed, Feb 22, 2017 at 03:05:29PM -0800, Dan Williams wrote: > On Tue, Feb 7, 2017 at 11:22 PM, Xiong Zhou wrote: > > On Wed, Feb 08, 2017 at 03:09:07PM +0800, Xiong Zhou wrote: > >> On Wed, Feb 08, 2017 at 02:56:51PM +0800, Xiong Zhou wrote: > >> > On Tue, Feb 07,

Re: [PATCH v6 2/2] generic: test mmap io through DAX and non-DAX

2017-02-16 Thread Xiong Zhou
On Fri, Feb 17, 2017 at 02:46:24PM +0800, Eryu Guan wrote: > On Wed, Feb 08, 2017 at 12:11:18PM +0800, Xiong Zhou wrote: > > Mount TEST_DEV as non-DAX, SCRATCH_DEV as DAX, then > > do some IO between them. In this case we use mmap > > and dio/buffered IO read/write test progr

Re: read failure (was Re: mmap dio write failure)

2017-02-07 Thread Xiong Zhou
On Wed, Feb 08, 2017 at 03:09:07PM +0800, Xiong Zhou wrote: > On Wed, Feb 08, 2017 at 02:56:51PM +0800, Xiong Zhou wrote: > > On Tue, Feb 07, 2017 at 09:05:21PM -0800, Dan Williams wrote: > > > On Tue, Feb 7, 2017 at 8:49 PM, Xiong Zhou wrote: > > > > On Tue, Feb 07,

Re: read failure (was Re: mmap dio write failure)

2017-02-07 Thread Xiong Zhou
On Wed, Feb 08, 2017 at 02:56:51PM +0800, Xiong Zhou wrote: > On Tue, Feb 07, 2017 at 09:05:21PM -0800, Dan Williams wrote: > > On Tue, Feb 7, 2017 at 8:49 PM, Xiong Zhou wrote: > > > On Tue, Feb 07, 2017 at 08:10:14PM -0800, Dan Williams wrote: > > >> On Tue, Feb

Re: read failure (was Re: mmap dio write failure)

2017-02-07 Thread Xiong Zhou
On Tue, Feb 07, 2017 at 09:05:21PM -0800, Dan Williams wrote: > On Tue, Feb 7, 2017 at 8:49 PM, Xiong Zhou wrote: > > On Tue, Feb 07, 2017 at 08:10:14PM -0800, Dan Williams wrote: > >> On Tue, Feb 7, 2017 at 7:51 PM, Xiong Zhou wrote: > >> > On Fri, Jan 20, 2017 a

Re: read failure (was Re: mmap dio write failure)

2017-02-07 Thread Xiong Zhou
On Tue, Feb 07, 2017 at 08:10:14PM -0800, Dan Williams wrote: > On Tue, Feb 7, 2017 at 7:51 PM, Xiong Zhou wrote: > > On Fri, Jan 20, 2017 at 12:40:07PM +0800, Xiong Zhou wrote: > >> Hi, > >> > >> At first, I am not sure whether this is an issue. > >&g

[PATCH v6 1/2] xfs: test per-inode DAX flag by IO

2017-02-07 Thread Xiong Zhou
dio test programme to test read/write between a mmap area of one file and another file directly or buffered, with different size. Signed-off-by: Ross Zwisler Signed-off-by: Xiong Zhou --- .gitignore| 1 + common/rc | 13 + src/Makefile | 2 +- src/t_mmap_dio.c

[PATCH v6 0/2] mmap dio and DAX

2017-02-07 Thread Xiong Zhou
ax to nondax +read(Bad address) len 4096 dio dax to nondax +read(Bad address) len 16777216 dio dax to nondax +read(Bad address) len 67108864 dio dax to nondax I've reported this as an issue: https://lists.01.org/pipermail/linux-nvdimm/2017-February/008781.html Xiong Zhou

[PATCH v6 2/2] generic: test mmap io through DAX and non-DAX

2017-02-07 Thread Xiong Zhou
Mount TEST_DEV as non-DAX, SCRATCH_DEV as DAX, then do some IO between them. In this case we use mmap and dio/buffered IO read/write test programme. Signed-off-by: Ross Zwisler Signed-off-by: Xiong Zhou --- tests/generic/407 | 152 ++ tests

read failure (was Re: mmap dio write failure)

2017-02-07 Thread Xiong Zhou
On Fri, Jan 20, 2017 at 12:40:07PM +0800, Xiong Zhou wrote: > Hi, > > At first, I am not sure whether this is an issue. > > mmap a file in a DAX mountpoint, open another file > in a non-DAX mountpoint with O_DIRECT, write the > mapped area to the other file. > >

Re: mmap dio write failure

2017-02-07 Thread Xiong Zhou
On Thu, Jan 19, 2017 at 10:04:01PM -0800, Dan Williams wrote: > On Thu, Jan 19, 2017 at 8:40 PM, Xiong Zhou wrote: > > Hi, > > > > At first, I am not sure whether this is an issue. > > > > mmap a file in a DAX mountpoint, open another file > > in a non-

[PATCH v5 1/2] xfs: test per-inode DAX flag by IO

2017-02-04 Thread Xiong Zhou
dio test programme to test read/write between a mmap area of one file and another file directly or buffered, with different size. Signed-off-by: Ross Zwisler Signed-off-by: Xiong Zhou --- .gitignore| 1 + common/rc | 13 ++ src/Makefile | 2 +- src/t_mmap_dio.c

[PATCH v5 2/2] generic: test mmap io through DAX and non-DAX

2017-02-04 Thread Xiong Zhou
Mount TEST_DEV as non-DAX, SCRATCH_DEV as DAX, then do some IO between them. In this case we use mmap and dio/buffered IO read/write test programme. Signed-off-by: Ross Zwisler Signed-off-by: Xiong Zhou --- tests/generic/407 | 125 ++ tests

[PATCH v5 0/2] mmap dio and DAX

2017-02-04 Thread Xiong Zhou
.html Xiong Zhou (2): xfs: test per-inode DAX flag by IO generic: test mmap io through DAX and non-DAX .gitignore| 1 + common/rc | 13 ++ src/Makefile | 2 +- src/t_mmap_dio.c | 107 ++ tests/generic/407

Re: [PATCH v4 0/2] mmap dio and DAX

2017-02-04 Thread Xiong Zhou
On Fri, Feb 03, 2017 at 09:57:10AM -0700, Ross Zwisler wrote: > On Fri, Feb 03, 2017 at 01:57:17PM +0800, Xiong Zhou wrote: > > On Tue, Jan 24, 2017 at 03:28:55PM -0700, Ross Zwisler wrote: > > > On Fri, Jan 20, 2017 at 02:15:48PM +0800, Xiong Zhou wrote: > > > >

Re: [PATCH v4 0/2] mmap dio and DAX

2017-02-02 Thread Xiong Zhou
On Tue, Jan 24, 2017 at 03:28:55PM -0700, Ross Zwisler wrote: > On Fri, Jan 20, 2017 at 02:15:48PM +0800, Xiong Zhou wrote: > > common/rc : requires SCRATCH_DEV support DAX > > src/t_mmap_dio.c : intro mmap and O_DIRECT rw through files > > tests/generic/405 : I

[LTP issues] MAP_LOCKED MS_INVALIDATE, dio rw odd count on DAX

2017-01-23 Thread Xiong Zhou
Hi, LTP tests on DAX show 2 issues. msync03 and diotest4, both xfs and ext4, non-DAX pass DAX fail 1, MAP_LOCKED && msync with MS_INVALIDATE, which should fail. Flag checking code in msync looks ok but missing _LOCK vma falgs for DAX mapped vma ? i guess DAX now does not support that ? T

[PATCH v4 2/2] generic: test mmap io through DAX and non-DAX

2017-01-19 Thread Xiong Zhou
Mount TEST_DEV as non-DAX, SCRATCH_DEV as DAX, then do some IO between them. In this case we use mmap and dio/buffered IO read/write test programme. Signed-off-by: Xiong Zhou --- tests/generic/405 | 119 ++ tests/generic/405.out | 2 + tests

[PATCH v4 1/2] xfs: test per-inode DAX flag by IO

2017-01-19 Thread Xiong Zhou
dio test programme to test read/write between a mmap area of one file and another file directly or buffered, with different size. Signed-off-by: Xiong Zhou --- .gitignore| 1 + common/rc | 13 ++ src/Makefile | 2 +- src/t_mmap_dio.c | 105

[PATCH v4 0/2] mmap dio and DAX

2017-01-19 Thread Xiong Zhou
nondax +write(Bad address) len 67108864 dio dax to nondax I've reported this to nvdimm list. https://lists.01.org/pipermail/linux-nvdimm/2017-January/008600.html Xiong Zhou (2): xfs: test per-inode DAX flag by IO generic: test mmap io through DAX and non-DAX .gitignore

mmap dio write failure

2017-01-19 Thread Xiong Zhou
Hi, At first, I am not sure whether this is an issue. mmap a file in a DAX mountpoint, open another file in a non-DAX mountpoint with O_DIRECT, write the mapped area to the other file. This write Success on pmem ramdisk(memmap=2G!20G like) This write Fail(Bad address) on nvdimm pmem devices. Thi

[PATCH v3] xfs: test per-inode DAX flag by IO

2017-01-19 Thread Xiong Zhou
programme to test read/write between a mmap area of one file and another file directly, with different size. Signed-off-by: Xiong Zhou --- v3: close fds in C test programme for clean up. .gitignore| 1 + common/rc | 14 +++ src/Makefile | 2 +- src/t_mmap_dio.c | 89

Re: [PATCH v2 1/2] xfs: test per-inode DAX flag by IO

2017-01-19 Thread Xiong Zhou
On Thu, Jan 19, 2017 at 01:49:25PM -0700, Ross Zwisler wrote: > On Thu, Jan 19, 2017 at 06:13:57PM +0800, Xiong Zhou wrote: ...snip.. > > + ret = munmap(map, len); > > + if (ret < 0) > > + err_exit("munmap", len, argv[4]); > > Small nit: you

[PATCH v2 2/2] generic: test mmap dio through DAX and non-DAX

2017-01-19 Thread Xiong Zhou
Mount TEST_DEV as non-DAX, SCRATCH_DEV as DAX, then do some IO between them. In this case we use mmap and dio read/write test programme. Signed-off-by: Xiong Zhou --- tests/generic/405 | 116 ++ tests/generic/405.out | 2 + tests/generic

[PATCH v2 1/2] xfs: test per-inode DAX flag by IO

2017-01-19 Thread Xiong Zhou
programme to test read/write between a mmap area of one file and another file directly, with different size. Signed-off-by: Xiong Zhou --- .gitignore| 1 + common/rc | 14 +++ src/Makefile | 2 +- src/t_mmap_dio.c | 81 tests/xfs

[PATCH v2 0/2] mmap dio and DAX

2017-01-19 Thread Xiong Zhou
+write(Bad address) len 16777216 dax to nondax +write(Bad address) len 67108864 dax to nondax Xiong Zhou (2): xfs: test per-inode DAX flag by IO generic: test mmap dio through DAX and non-DAX .gitignore| 1 + common/rc | 14 ++ src/Makefile

[PATCH 2/4] src/t_mmap_dio: add mmap dio test

2017-01-17 Thread Xiong Zhou
To test read/write between a mmap area of one file and another file directly, with different size. Signed-off-by: Xiong Zhou --- .gitignore | 1 + src/Makefile | 2 +- src/t_mmap_dio.c | 81 3 files changed, 83 insertions

[PATCH 3/4] xfs: test per-inode DAX flag by IO

2017-01-17 Thread Xiong Zhou
We do mmap and O_DIRECT read/write, through files with and without DAX flag. Signed-off-by: Xiong Zhou --- tests/xfs/138 | 105 ++ tests/xfs/138.out | 2 ++ tests/xfs/group | 1 + 3 files changed, 108 insertions(+) create mode

[PATCH 4/4] generic: test mmap dio through DAX and non-DAX

2017-01-17 Thread Xiong Zhou
Signed-off-by: Xiong Zhou --- tests/generic/405 | 100 ++ tests/generic/405.out | 2 + tests/generic/group | 1 + 3 files changed, 103 insertions(+) create mode 100755 tests/generic/405 create mode 100644 tests/generic/405.out diff

[PATCH 1/4] common/rc: add _require_scratch_dax

2017-01-17 Thread Xiong Zhou
To make sure we can test DAX feature on SCRATCH_DEV. Signed-off-by: Xiong Zhou --- common/rc | 10 ++ 1 file changed, 10 insertions(+) diff --git a/common/rc b/common/rc index 892c46e..ea7956b 100644 --- a/common/rc +++ b/common/rc @@ -2632,6 +2632,16 @@ _require_scratch_shutdown

[PATCH 0/4] mmap dio and DAX

2017-01-17 Thread Xiong Zhou
common/rc : requires SCRATCH_DEV support DAX src/t_mmap_dio.c : intro mmap and O_DIRECT rw through files tests/generic/405 : IO between DAX/non-DAX mountpoints tests/xfs/138 : IO between DAX/non-DAX xfs files(per-inode flag) Xiong Zhou (4): common/rc: add _require_scratch_dax src

Re: linux-next 0112 tree breaks fs DAX

2017-01-16 Thread Xiong Zhou
On Fri, Jan 13, 2017 at 06:16:41PM +0800, Xiong Zhou wrote: > Hi, > > These cases "hang" when testing with -o dax mount option: > xfstests generic/030 generic/34{0,4,5,6} generic/198 > (maybe more) > > The test programme holetest or aiodio keep running for a >

Re: [PATCH] dax: fix deadlock with DAX 4k holes

2017-01-04 Thread Xiong Zhou
ransition from > locking based on the DAX empty entry to locking on the 4k zero page. > > With the test case reported by Xiong this happens very regularly in my test > setup, with some runs resulting in 9+ threads in this deadlocked state. > With this fix I've been able to run t

Re: LTP rwtest01 blocks on DAX mountpoint

2017-01-04 Thread Xiong Zhou
On Tue, Jan 03, 2017 at 09:57:10AM -0700, Ross Zwisler wrote: > On Tue, Jan 03, 2017 at 02:49:22PM +0800, Xiong Zhou wrote: > > On Mon, Jan 02, 2017 at 02:49:41PM -0700, Ross Zwisler wrote: > > > On Mon, Jan 02, 2017 at 06:16:17PM +0100, Jan Kara wrote: > > > > On Fri

Re: LTP rwtest01 blocks on DAX mountpoint

2017-01-03 Thread Xiong Zhou
On Tue, Jan 03, 2017 at 09:57:10AM -0700, Ross Zwisler wrote: > On Tue, Jan 03, 2017 at 02:49:22PM +0800, Xiong Zhou wrote: > > On Mon, Jan 02, 2017 at 02:49:41PM -0700, Ross Zwisler wrote: > > > On Mon, Jan 02, 2017 at 06:16:17PM +0100, Jan Kara wrote: > > > > On Fri

Re: LTP rwtest01 blocks on DAX mountpoint

2017-01-03 Thread Xiong Zhou
On Tue, Jan 03, 2017 at 09:57:10AM -0700, Ross Zwisler wrote: > On Tue, Jan 03, 2017 at 02:49:22PM +0800, Xiong Zhou wrote: > > On Mon, Jan 02, 2017 at 02:49:41PM -0700, Ross Zwisler wrote: > > > On Mon, Jan 02, 2017 at 06:16:17PM +0100, Jan Kara wrote: > > > > On Fri

Re: LTP rwtest01 blocks on DAX mountpoint

2017-01-02 Thread Xiong Zhou
On Mon, Jan 02, 2017 at 02:49:41PM -0700, Ross Zwisler wrote: > On Mon, Jan 02, 2017 at 06:16:17PM +0100, Jan Kara wrote: > > On Fri 30-12-16 17:33:53, Xiong Zhou wrote: > > > On Sat, Dec 24, 2016 at 07:07:14PM +0800, Xiong Zhou wrote: > > > > Hi lists, snip > >

Re: LTP rwtest01 blocks on DAX mountpoint

2016-12-30 Thread Xiong Zhou
On Sat, Dec 24, 2016 at 07:07:14PM +0800, Xiong Zhou wrote: > Hi lists, > > Since around 20161129 tag, LTP rwtest01 on dax mountpoint blocks > on linux-next tree, now on Linus tree. > > In "normal", rwtest01 subcase ends in a few minutes, now it keeps > running fo

LTP rwtest01 blocks on DAX mountpoint

2016-12-24 Thread Xiong Zhou
Hi lists, Since around 20161129 tag, LTP rwtest01 on dax mountpoint blocks on linux-next tree, now on Linus tree. In "normal", rwtest01 subcase ends in a few minutes, now it keeps running for hours on dax mountpoint, both ext4 and xfs. Ctrl + c can interrupt it. It is always reproducible, blocki

multi-threads libvmmalloc fork test hang

2016-10-27 Thread Xiong Zhou
# description nvml test suite vmmalloc_fork test hang. $ ps -eo stat,comm | grep vmma S+ vmmalloc_fork Sl+ vmmalloc_fork Z+ vmmalloc_fork Sl+ vmmalloc_fork Z+ vmmalloc_fork Z+ vmmalloc_fork Sl+ vmmalloc_fork Z+ vmmalloc_fork Z+ vmmalloc_fork Z+ vmmalloc_fork dmesg: [ 2

xfstests xfs fuzzers fail with DAX

2016-08-03 Thread Xiong Zhou
Hi, A few xfs fuzzers in xfstests fail with dax mount option, pass without dax. They are xfs/086 xfs/088 xfs/089 xfs/091. xfstests to commit 4470ad4c7e (Jul 26) kernel to commit dd95069545 (Jul 24) + ./check xfs/091 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 rhel73 4.7.0+