Re: [PATCH 04/10] Btrfs: extent map selftest: buffered write vs dio read

2017-12-22 Thread Liu Bo
On Fri, Dec 22, 2017 at 09:51:24AM +0200, Nikolay Borisov wrote: > > > On 22.12.2017 00:42, Liu Bo wrote: > > This test case simulates the racy situation of buffered write vs dio > > read, and see if btrfs_get_extent() would return -EEXIST. > > Isn't mixing dio/buffered IO on the same file

Re: [PATCH 04/10] Btrfs: extent map selftest: buffered write vs dio read

2017-12-21 Thread Nikolay Borisov
On 22.12.2017 00:42, Liu Bo wrote: > This test case simulates the racy situation of buffered write vs dio > read, and see if btrfs_get_extent() would return -EEXIST. Isn't mixing dio/buffered IO on the same file (range?) considered dangerous in any case? > > Signed-off-by: Liu Bo

[PATCH 04/10] Btrfs: extent map selftest: buffered write vs dio read

2017-12-21 Thread Liu Bo
This test case simulates the racy situation of buffered write vs dio read, and see if btrfs_get_extent() would return -EEXIST. Signed-off-by: Liu Bo --- fs/btrfs/tests/extent-map-tests.c | 73 +++ 1 file changed, 73 insertions(+) diff