]> 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)
commit08f0c24498b03f7fde8a5ee0d614fa95ace9d9e5
tree668234af9786cfef84acd39fdcc4691a5fec5ab7
parent4fb6d347f4ecc3b17bcd4578f6343d86704c6f7e
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