|
|
@@ -1315,7 +1315,7 @@ static void process_shared_bio(struct thin_c *tc, struct bio *bio,
|
|
|
if (bio_detain(pool->prison, &key, bio, &cell))
|
|
|
return;
|
|
|
|
|
|
- if (bio_data_dir(bio) == WRITE)
|
|
|
+ if (bio_data_dir(bio) == WRITE && bio->bi_size)
|
|
|
break_sharing(tc, bio, block, &key, lookup_result, cell);
|
|
|
else {
|
|
|
struct dm_thin_endio_hook *h = dm_get_mapinfo(bio)->ptr;
|