]> git.baikalelectronics.ru Git - 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)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Apr 2019 20:26:02 +0000 (16:26 -0400)
commit08833192676e9570c84aedfa02355d10fb6eb981
tree47d8281ecef487560af4254a828dbbc89c86b592
parentd8027abe576f2838a7d461a6ebcf66edbe8b5253
dm table: propagate BDI_CAP_STABLE_WRITES to fix sporadic checksum errors

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