|
@@ -996,6 +996,7 @@ static void request_write(struct cached_dev *dc, struct search *s)
|
|
|
closure_bio_submit(bio, cl, s->d);
|
|
|
} else {
|
|
|
bch_writeback_add(dc);
|
|
|
+ s->op.cache_bio = bio;
|
|
|
|
|
|
if (bio->bi_rw & REQ_FLUSH) {
|
|
|
/* Also need to send a flush to the backing device */
|
|
@@ -1008,8 +1009,6 @@ static void request_write(struct cached_dev *dc, struct search *s)
|
|
|
flush->bi_private = cl;
|
|
|
|
|
|
closure_bio_submit(flush, cl, s->d);
|
|
|
- } else {
|
|
|
- s->op.cache_bio = bio;
|
|
|
}
|
|
|
}
|
|
|
out:
|