Re: [PATCH v2 02/10] Btrfs: fix unexpected EEXIST from btrfs_get_extent

2018-01-09 Thread Josef Bacik
On Fri, Jan 05, 2018 at 12:51:09PM -0700, Liu Bo wrote: > This fixes a corner case that is caused by a race of dio write vs dio > read/write. > > Here is how the race could happen. > > Suppose that no extent map has been loaded into memory yet. > There is a file extent [0, 32K), two jobs are

[PATCH v2 02/10] Btrfs: fix unexpected EEXIST from btrfs_get_extent

2018-01-05 Thread Liu Bo
This fixes a corner case that is caused by a race of dio write vs dio read/write. Here is how the race could happen. Suppose that no extent map has been loaded into memory yet. There is a file extent [0, 32K), two jobs are running concurrently against it, t1 is doing dio write to [8K, 32K) and