summaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-01-04 03:39:33 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2017-01-04 03:39:33 +0100
commita1b7a4dea6166cf46be895bce4aac67ea5160fe8 (patch)
tree0051a1fb1c74410578be71bb9cc5dd4c0dade466 /MAINTAINERS
parentxfs: use the actual AG length when reserving blocks (diff)
downloadlinux-a1b7a4dea6166cf46be895bce4aac67ea5160fe8.tar.xz
linux-a1b7a4dea6166cf46be895bce4aac67ea5160fe8.zip
xfs: fix crash and data corruption due to removal of busy COW extents
There is a race window between write_cache_pages calling clear_page_dirty_for_io and XFS calling set_page_writeback, in which the mapping for an inode is tagged neither as dirty, nor as writeback. If the COW shrinker hits in exactly that window we'll remove the delayed COW extents and writepages trying to write it back, which in release kernels will manifest as corruption of the bmap btree, and in debug kernels will trip the ASSERT about now calling xfs_bmapi_write with the COWFORK flag for holes. A complex customer load manages to hit this window fairly reliably, probably by always having COW writeback in flight while the cow shrinker runs. This patch adds another check for having the I_DIRTY_PAGES flag set, which is still set during this race window. While this fixes the problem I'm still not overly happy about the way the COW shrinker works as it still seems a bit fragile. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions