dm writecache: implement gradual cleanup
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 24 Feb 2020 09:20:33 +0000 (10:20 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 24 Mar 2020 15:55:08 +0000 (11:55 -0400)
commit3923d4854e189d84c6ec22e66d536d3498f2747c
tree4366957741c615173d1f3da3e0fb1e3930235eee
parent93de44eb3fc8c3566f5315b0210630cc361526a7
dm writecache: implement gradual cleanup

If a block is stored in the cache for too long, it will now be
written to the underlying device and cleaned up.

Add a new option "max_age" that specifies the maximum age of a block
in milliseconds.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c