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:37:55 +0000 (08:37 +0200)
commit2f51343153e69aad32e0520bd1e77bcc315b6d16
tree809f7e4910479b8c0ecd1ec4d9f63fa3026dfa2b
parent5b5832ca0c6f7a8de496db56509c2e56721bcb12
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