summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-12-07 05:59:27 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2016-12-07 07:58:21 -0900
commitc5d3b06ad487416f359d39f9f09d701cafde177f (patch)
tree6c7949cf221d8970700cc8b7e6d949dd31594239
parent74a97fb2c38c4f1c19dd7344232209cd8a29b013 (diff)
bcache: fix uninitialized field
bug was only when replication was enabled
-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 2bf1e4b8eec1..d0dd6df459d6 100644
--- a/drivers/md/bcache/io.c
+++ b/drivers/md/bcache/io.c
@@ -165,6 +165,7 @@ void bch_submit_wbio_replicas(struct bch_write_bio *wbio, struct cache_set *c,
n->orig = &wbio->bio;
n->bounce = false;
n->split = true;
+ n->put_bio = true;
n->bio.bi_opf = wbio->bio.bi_opf;
__bio_inc_remaining(n->orig);
} else {