X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fmd%2Fdm-io.c;h=b8e342fe75863e526a074584d3e0b64f92b775da;hb=39e823e35b791b905e0d8eba62e8b3a0b3351936;hp=f3a772486437e1ee08608e28835adf85911aaaf8;hpb=2d896c780db9cda5dc102bf7a0a2cd4394c1342e;p=powerpc.git diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index f3a7724864..b8e342fe75 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c @@ -124,15 +124,11 @@ static void dec_count(struct io *io, unsigned int region, int error) } } -static int endio(struct bio *bio, unsigned int done, int error) +static void endio(struct bio *bio, int error) { struct io *io; unsigned region; - /* keep going until we've finished */ - if (bio->bi_size) - return 1; - if (error && bio_data_dir(bio) == READ) zero_fill_bio(bio); @@ -146,8 +142,6 @@ static int endio(struct bio *bio, unsigned int done, int error) bio_put(bio); dec_count(io, region, error); - - return 0; } /*-----------------------------------------------------------------