On Wed, Apr 22, 2020 at 01:54:28PM -0400, Brian Foster wrote: > @@ -1289,6 +1289,12 @@ xfs_buf_bio_end_io( > struct bio *bio) > { > struct xfs_buf *bp = (struct xfs_buf *)bio->bi_private; > + struct xfs_mount *mp = bp->b_mount; > + > + if (!bio->bi_status && > + (bp->b_flags & XBF_WRITE) && (bp->b_flags & XBF_ASYNC) && > + XFS_TEST_ERROR(false, mp, XFS_ERRTAG_BUF_IOERROR)) > + bio->bi_status = errno_to_blk_status(-EIO); Please just use BLK_STS_IOERR directly here.