From: Zhao Lei <[email protected]>

It is the last patch to fix following write fail case:
while true; do
  write a file to 75% fs size
  delete above file
  sync or sleep
done

Above issue is caused by several reason, and fixed in following patch
respectively:
 Btrfs: fix find_free_dev_extent() malfunction in case device tree has hole
  from Forrest Liu <[email protected]>
 btrfs: Fix out-of-space bug
  merged into v4.0-rc1
 btrfs: fix condition of commit transaction
 btrfs: Fix tail space processing in find_free_dev_extent()
 btrfs: Adjust commit-transaction condition to avoid NO_SPACE more
 btrfs: Fix NO_SPACE bug caused by delayed-iput
  this patch

These patchs reduced fail-rate step by step, from 50 fails in 20 * 200
loops, to 0 fails now.
And now we can add a test case to xfstests for above action.

Zhao Lei (1):
  btrfs: Fix NO_SPACE bug caused by delayed-iput

 fs/btrfs/ctree.h       | 1 +
 fs/btrfs/disk-io.c     | 3 ++-
 fs/btrfs/inode.c       | 4 ++++
 fs/btrfs/transaction.c | 6 +++++-
 4 files changed, 12 insertions(+), 2 deletions(-)

-- 
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to