Message ID | 20170920160735.jp4riq7x3qc472px@kmo-pixel (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 382397772a..c2d57ef953 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -532,8 +532,10 @@ static int cache_lookup_fn(struct btree_op *op, struct btree *b, struct bkey *k) PTR_BUCKET(b->c, k, ptr)->prio = INITIAL_PRIO; - if (KEY_DIRTY(k)) + if (KEY_DIRTY(k)) { s->read_dirty_data = true; + s->recoverable = false; + } n = bio_next_split(bio, min_t(uint64_t, INT_MAX, KEY_OFFSET(k) - bio->bi_iter.bi_sector),