summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-05-02 23:54:25 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-01-18 21:39:23 -0900
commit096f397c5a4038d6fa14fc048eb315e83699c0d0 (patch)
treeda5d4a276a4e42bc0359cc8b5b8804c8f39c86ce
parent2ae2b680e25f9ff993c8bc877ca37b7c7b5af08c (diff)
bcache: fix bch_bio_free_pages_pool()
-rw-r--r--drivers/md/bcache/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/io.c b/drivers/md/bcache/io.c
index f25592898aed..9ea8146ea7a0 100644
--- a/drivers/md/bcache/io.c
+++ b/drivers/md/bcache/io.c
@@ -74,6 +74,7 @@ static void bch_bio_free_pages_pool(struct cache_set *c, struct bio *bio)
bio_for_each_segment_all(bv, bio, i)
if (bv->bv_page != ZERO_PAGE(0))
mempool_free(bv->bv_page, &c->bio_bounce_pages);
+ bio->bi_vcnt = 0;
}
static void bch_bio_alloc_page_pool(struct cache_set *c, struct bio *bio,