missed bio_endio() in axonram
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e86908614f
commit
d81fec0f97
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ axon_ram_make_request(struct request_queue *queue, struct bio *bio)
|
||||||
transfered = 0;
|
transfered = 0;
|
||||||
bio_for_each_segment(vec, bio, idx) {
|
bio_for_each_segment(vec, bio, idx) {
|
||||||
if (unlikely(phys_mem + vec->bv_len > phys_end)) {
|
if (unlikely(phys_mem + vec->bv_len > phys_end)) {
|
||||||
bio_io_error(bio, bio->bi_size);
|
bio_io_error(bio);
|
||||||
rc = -ERANGE;
|
rc = -ERANGE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ axon_ram_make_request(struct request_queue *queue, struct bio *bio)
|
||||||
phys_mem += vec->bv_len;
|
phys_mem += vec->bv_len;
|
||||||
transfered += vec->bv_len;
|
transfered += vec->bv_len;
|
||||||
}
|
}
|
||||||
bio_endio(bio, transfered, 0);
|
bio_endio(bio, 0);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue