]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors
authorIlya Dryomov <idryomov@gmail.com>
Tue, 26 Mar 2019 19:20:58 +0000 (20:20 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commite9470f5b4665000e48c73619dd4af1390eb7fdf9
tree8ec80d2e250496d54650451f7bd7c1c9c35769f6
parent2ee9908deb8cd297f79660ea752ad19f595435d8
dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors

BugLink: https://bugs.launchpad.net/bugs/1838116
commit eb40c0acdc342b815d4d03ae6abb09e80c0f2988 upstream.

Some devices don't use blk_integrity but still want stable pages
because they do their own checksumming.  Examples include rbd and iSCSI
when data digests are negotiated.  Stacking DM (and thus LVM) on top of
these devices results in sporadic checksum errors.

Set BDI_CAP_STABLE_WRITES if any underlying device has it set.

Cc: stable@vger.kernel.org
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/md/dm-table.c