Re: [PATCH v2 05/10] Btrfs: add extent map selftests

2018-01-09 Thread Josef Bacik
On Fri, Jan 05, 2018 at 12:51:12PM -0700, Liu Bo wrote: > We've observed that btrfs_get_extent() and merge_extent_mapping() could > return -EEXIST in several cases, and they are caused by some racy > condition, e.g dio read vs dio write, which makes the problem very tricky > to reproduce. > > This

[PATCH v2 05/10] Btrfs: add extent map selftests

2018-01-05 Thread Liu Bo
We've observed that btrfs_get_extent() and merge_extent_mapping() could return -EEXIST in several cases, and they are caused by some racy condition, e.g dio read vs dio write, which makes the problem very tricky to reproduce. This adds extent map selftests in order to simulate those racy situation