diff options
author | Joe Thornber <ejt@redhat.com> | 2014-09-17 09:17:39 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-11-10 20:25:30 (GMT) |
commit | 5f274d886598c9fd26d2499bf3f68306f170e9db (patch) | |
tree | af0ded19382c65e832ea51e2b01efb40581c81dd /drivers/md/dm-cache-target.c | |
parent | f1afb36a6102b52949c2c6d8eb250eddcce3fc5f (diff) | |
download | linux-5f274d886598c9fd26d2499bf3f68306f170e9db.tar.xz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index 69de8b4..890e2ff 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; } /* |