• Joe Thornber's avatar
    dm cache: defer whole cells · 651f5fa2
    Joe Thornber authored
    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: default avatarJoe Thornber <ejt@redhat.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    651f5fa2
dm-cache-target.c 89.4 KB