summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2014-05-01 16:14:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-07 10:28:12 -0700
commitf9556c35b5b7ce5b50a0490c2b93c88af92df648 (patch)
tree13acf5d2b94b7c3e944b025d165c06893341017e /drivers
parentc80498a9f6b91d35bc6b6dfd185886d8d4346d43 (diff)
downloadlwn-f9556c35b5b7ce5b50a0490c2b93c88af92df648.tar.gz
lwn-f9556c35b5b7ce5b50a0490c2b93c88af92df648.zip
dm cache: fix writethrough mode quiescing in cache_map
commit 131cd131a9ff63d4b84f3fe15073a2984ac30066 upstream. Commit 2ee57d58735 ("dm cache: add passthrough mode") inadvertently removed the deferred set reference that was taken in cache_map()'s writethrough mode support. Restore taking this reference. This issue was found with code inspection. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Acked-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm-cache-target.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index b82b58f0bb85..9306e0bcb564 100644
--- a/drivers/md/dm-cache-target.c
+++ b/drivers/md/dm-cache-target.c
@@ -2506,6 +2506,7 @@ static int cache_map(struct dm_target *ti, struct bio *bio)
} else {
inc_hit_counter(cache, bio);
+ pb->all_io_entry = dm_deferred_entry_inc(cache->all_io_ds);
if (bio_data_dir(bio) == WRITE && writethrough_mode(&cache->features) &&
!is_dirty(cache, lookup_result.cblock))