summaryrefslogtreecommitdiff
path: root/net/openvswitch
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-05-29 10:18:25 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-06-24 18:12:15 -0700
commit2037459b1d797313bfca56862643d69bd957e6f5 (patch)
tree45a1361c0649991f831fa9ce53cdc0006d4733aa /net/openvswitch
parent48778464bb7d346b47157d21ffde2af6b2d39110 (diff)
xfs: don't eat an EIO/ENOSPC writeback error when scrubbing data forkxfs-5.8-fixes_2020-06-24
The data fork scrubber calls filemap_write_and_wait to flush dirty pages and delalloc reservations out to disk prior to checking the data fork's extent mappings. Unfortunately, this means that scrub can consume the EIO/ENOSPC errors that would otherwise have stayed around in the address space until (we hope) the writer application calls fsync to persist data and collect errors. The end result is that programs that wrote to a file might never see the error code and proceed as if nothing were wrong. xfs_scrub is not in a position to notify file writers about the writeback failure, and it's only here to check metadata, not file contents. Therefore, if writeback fails, we should stuff the error code back into the address space so that an fsync by the writer application can pick that up. Fixes: 99d9d8d05da2 ("xfs: scrub inode block mappings") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions