Skip to content

Commit

Permalink
[XFS] set b_error from bio error in xfs_buf_bio_end_io
Browse files Browse the repository at this point in the history
Preserve any error returned by the bio layer.

Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
  • Loading branch information
Lachlan McIlroy committed Dec 12, 2008
1 parent 14d676f commit cfbe526
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/xfs/linux-2.6/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cfbe526

Please sign in to comment.