dm writecache: add optional "metadata_only" parameter
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 21 Jun 2021 09:22:21 +0000 (05:22 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 25 Jun 2021 19:25:21 +0000 (15:25 -0400)
commit611c3e168b1c5b6cf81e6deb8f6b4eb83f6b53fd
tree0cd47db943f892db1caa04512e9987af82284653
parentcd039afa0ad86e1f01921cc5abf7f80d2449543a
dm writecache: add optional "metadata_only" parameter

Add a "metadata_only" parameter that when present: only metadata is
promoted to the cache. This option improves performance for heavier
REQ_META workloads (e.g. device-mapper-test-suite's "git clone and
checkout" benchmark improves from 341s to 312s).

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/writecache.rst
drivers/md/dm-writecache.c