commit | e12199f85d0ad1b04ce6c425ad93cd847fe930bb | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Oct 03 08:58:33 2017 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Tue Oct 03 21:27:55 2017 -0700 |
tree | a4d96867b24d45f6e627b72f9d804ed2cb3e92b1 | |
parent | 52bfcdd7adbc26639bc7b2356ab9a3f5dad68ad6 [diff] |
xfs: handle racy AIO in xfs_reflink_end_cow If we got two AIO writes into a COW area the second one might not have any COW extents left to convert. Handle that case gracefully instead of triggering an assert or accessing beyond the bounds of the extent list. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>