summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-target.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2014-09-17 10:17:39 +0100
committerMike Snitzer <snitzer@redhat.com>2014-11-10 15:25:30 -0500
commit5f274d886598c9fd26d2499bf3f68306f170e9db (patch)
treeaf0ded19382c65e832ea51e2b01efb40581c81dd /drivers/md/dm-cache-target.c
parentf1afb36a6102b52949c2c6d8eb250eddcce3fc5f (diff)
dm bio prison: introduce support for locking ranges of blocks
Ranges will be placed in the same cell if they overlap. Range locking is a prerequisite for more efficient multi-block discard support in both the cache and thin-provisioning targets. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
-rw-r--r--drivers/md/dm-cache-target.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index 69de8b43ca12..890e2fff4074 100644
--- a/drivers/md/dm-cache-target.c
+++ b/drivers/md/dm-cache-target.c
@@ -436,7 +436,8 @@ static void build_key(dm_oblock_t oblock, struct dm_cell_key *key)
{
key->virtual = 0;
key->dev = 0;
- key->block = from_oblock(oblock);
+ key->block_begin = from_oblock(oblock);
+ key->block_end = key->block_begin + 1ULL;
}
/*