]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: significant rework to leverage dm-bio-prison-v2
authorJoe Thornber <ejt@redhat.com>
Thu, 15 Dec 2016 09:57:31 +0000 (04:57 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Mar 2017 18:28:31 +0000 (13:28 -0500)
commitb29d4986d0da1a27cd35917cdb433672f5c95d7f
treea5d94b86cf1eb759bfef5761015135d747e80561
parent742c8fdc31e820503f9267070311d894978d1349
dm cache: significant rework to leverage dm-bio-prison-v2

The cache policy interfaces have been updated to work well with the new
bio-prison v2 interface's ability to queue work immediately (promotion,
demotion, etc) -- overriding benefit being reduced latency on processing
IO through the cache.  Previously such work would be left for the DM
cache core to queue on various lists and then process in batches later
-- this caused a serious delay in latency for IO driven by the cache.

The background tracker code was factored out so that all cache policies
can make use of it.

Also, the "cleaner" policy has been removed and is now a variant of the
smq policy that simply disallows migrations.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-cache-background-tracker.c [new file with mode: 0644]
drivers/md/dm-cache-background-tracker.h [new file with mode: 0644]
drivers/md/dm-cache-metadata.h
drivers/md/dm-cache-policy-cleaner.c [deleted file]
drivers/md/dm-cache-policy-internal.h
drivers/md/dm-cache-policy-smq.c
drivers/md/dm-cache-policy.h
drivers/md/dm-cache-target.c