Skip to content
Commit 2f62bb92 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Ben Hutchings
Browse files

dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors

commit eb40c0ac

 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.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
[bwh: Backported to 3.16: request_queue::backing_dev_info is a struct
 not a pointer]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 246ead03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment