]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: return the exact table values that were set
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 4 Feb 2021 10:20:52 +0000 (05:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jul 2021 12:35:14 +0000 (14:35 +0200)
commit5cd43569ea41ef20528e353b065782eae2347b9f
treeacf000d64e27756ac73068e30fd1a7e0592e8090
parenta14bc545534e6b2632fee363c9e4280463f5c359
dm writecache: return the exact table values that were set

commit 054bee16163df023e2589db09fd27d81f7ad9e72 upstream.

LVM doesn't like it when the target returns different values from what
was set in the constructor. Fix dm-writecache so that the returned
table values are exactly the same as requested values.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-writecache.c