Skip to content

Commit

Permalink
dm cache: defer whole cells
Browse files Browse the repository at this point in the history
Currently individual bios are deferred to the worker thread if they
cannot be processed immediately (eg, a block is in the process of
being moved to the fast device).

This patch passes whole cells across to the worker.  This saves
reaquiring the cell, and also collects bios destined for the same block
together, which allows them to be mapped with a single look up to the
policy.  This reduces the overhead of using dm-cache.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Joe Thornber authored and Mike Snitzer committed May 29, 2015
1 parent 3cdf93f commit 651f5fa
Showing 1 changed file with 262 additions and 63 deletions.
Loading

0 comments on commit 651f5fa

Please sign in to comment.