record errors in mapping when writeback fails on DAX
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm: clear any AS_* errors when returning from filemap_write_and_wait{_range}mm/ | +6 | 0 replies | |
| 2/2 | dax: set errors in mapping when writeback failsfs/ | +3 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jan Kara | Christoph Hellwig | Ross Zwisler |
|---|---|---|---|
| 1/2 | |||
| 2/2 | R-b | R-b | Reviewed-and-Tested-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/2] record errors in mapping when writeback fails on DAX
This is part of the preparatory set of patches to pave the way for improved writeback error reporting. In order to do this correctly, we need to ensure that DAX marks the mapping with an error when writeback fails.
I sent the second patch in this series to Ross last week, but he pointed out that it makes fsync error out more than it should, since we don't currently clear errors in filemap_write_and_wait and filemap_write_and_wait_range.
In order to fix that, I think we need the first patch in this set. There is a some danger that this could end up causing error flags to be cleared earlier than they were before when write initiation fails in other filesystems.
Given how racy all of the AS_* flag handling is though, I'm inclined to just go ahead and merge both of these into linux-next and deal with any fallout as it arises.
Does that seem like a reasonable plan? If so, Andrew, would you be willing to take both of these in for linux-next, with an eye toward merging into v4.13?
Thanks in advance,
Jeff Layton (2):
mm: clear any AS_* errors when returning from
filemap_write_and_wait{_range}dax: set errors in mapping when writeback fails
fs/dax.c | 4 +++- mm/filemap.c | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-)
Signature · 7 lines
2.9.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>