]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f6bd133d7a8960f652a2a46dd65ae98944124b2
tree668234af9786cfef84acd39fdcc4691a5fec5ab7
parent1697fc86b899432174e4a2b96037117c5cd32fdf
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