Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73105
b: refs/heads/master
c: 51fd77b
h: refs/heads/master
i:
  73103: b01efec
v: v3
  • Loading branch information
Jens Axboe committed Nov 2, 2007
1 parent 2ec444b commit df5531b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ec140e600b7d6624c657f008833f0e71bd5ef48
refs/heads/master: 51fd77bd9f512ab6cc9df0733ba1caaab89eb957
7 changes: 6 additions & 1 deletion trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -3221,6 +3221,7 @@ static inline void __generic_make_request(struct bio *bio)
sector_t old_sector;
int ret, nr_sectors = bio_sectors(bio);
dev_t old_dev;
int err = -EIO;

might_sleep();

Expand Down Expand Up @@ -3248,7 +3249,7 @@ static inline void __generic_make_request(struct bio *bio)
bdevname(bio->bi_bdev, b),
(long long) bio->bi_sector);
end_io:
bio_endio(bio, -EIO);
bio_endio(bio, err);
break;
}

Expand Down Expand Up @@ -3283,6 +3284,10 @@ static inline void __generic_make_request(struct bio *bio)

if (bio_check_eod(bio, nr_sectors))
goto end_io;
if (bio_empty_barrier(bio) && !q->prepare_flush_fn) {
err = -EOPNOTSUPP;
goto end_io;
}

ret = q->make_request_fn(q, bio);
} while (ret);
Expand Down

0 comments on commit df5531b

Please sign in to comment.