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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:38:54 +0000 (08:38 +0200)
commit469b40a429c54b21eb499287daaea08559793854
tree26abc8f588f31007adab22cdc343d423f21c1fc5
parent4f5c99e0421cfd4b3a6cc5827b49f4fd5e150da5
dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors

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>
drivers/md/dm-table.c