|
@@ -1142,7 +1142,8 @@ static void issue_copy_or_discard(struct dm_cache_migration *mg)
|
|
|
|
|
|
avoid = is_discarded_oblock(cache, mg->new_oblock);
|
|
|
|
|
|
- if (!avoid && bio_writes_complete_block(cache, bio)) {
|
|
|
+ if (writeback_mode(&cache->features) &&
|
|
|
+ !avoid && bio_writes_complete_block(cache, bio)) {
|
|
|
issue_overwrite(mg, bio);
|
|
|
return;
|
|
|
}
|