Skip to content

ext4: Fix ENOSPC handling for DAX faults

Jan Kara linux-ext4 linux-fsdevel linux-nvdimm nvdimm 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 5 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* Added Reviewed-by tags

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2dax: Pass detailed error code from dax_iomap_fault()fs/dax.c fs/ext2/file.c fs/ext4/file.c +2 more+10 -71 reply
2/2ext4: Fix ENOSPC handling in DAX page fault handlerfs/ext4/file.c+8 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRoss Zwisler
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/2 v3] ext4: Fix ENOSPC handling for DAX faults

Hello,

these two patches fix handling of ENOSPC during DAX faults. The problem is that currently running transaction may be holding lots of already freed blocks which can be reallocated only once the transaction commits. Standard retry logic in ext4_iomap_end() does not work for DAX page fault handler since we hold current transaction open in ext4_dax_huge_fault() and thus retry logic cannot force the running transaction and as a result application gets SIGBUS due to premature ENOSPC error.

Ted, can you please merge these patches through your tree? Ext4 is the part that is touched by these patches the most.

Changes since v2:
* Added Reviewed-by tags

Changes since v1:
* Made error passed back from dax_iomap_fault() explicitely be only the error from ->iomap_begin()

Comments are welcome.

Honza
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm