dm cache: defer whole cells
authorJoe Thornber <ejt@redhat.com>
Fri, 15 May 2015 14:26:08 +0000 (15:26 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:19:06 +0000 (14:19 -0400)
commit651f5fa2a3959ff5db60c09a84efd66309fe4035
tree668234af9786cfef84acd39fdcc4691a5fec5ab7
parent3cdf93f9d85979b22b6abfd4ab19350860e4dfac
dm cache: defer whole cells

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>
drivers/md/dm-cache-target.c