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>
Thu, 4 Mar 2021 10:38:45 +0000 (11:38 +0100)
commitf88a70bfd5d06f6bc275e42882988a431f63176a
tree8748bc4a0683a66f2c14606f51e973f28c2cf56c
parent70faef983ab21754a509cf409d2cf3d91a12326a
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