Commit cfbe5267 authored by Lachlan McIlroy's avatar Lachlan McIlroy

[XFS] set b_error from bio error in xfs_buf_bio_end_io

Preserve any error returned by the bio layer.
Reviewed-by: default avatarEric Sandeen <sandeen@sandeen.net>
Reviewed-by: default avatarTim Shimmin <tes@sgi.com>
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
parent 14d676f5
......@@ -1126,8 +1126,7 @@ xfs_buf_bio_end_io(
unsigned int blocksize = bp->b_target->bt_bsize;
struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1;
if (!test_bit(BIO_UPTODATE, &bio->bi_flags))
bp->b_error = EIO;
xfs_buf_ioerror(bp, -error);
do {
struct page *page = bvec->bv_page;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment