open-cas-linux/modules
Robert Baldyga e4d4750f96 Don't propagate bio flags to OCF for discard I/O
One of the steps of discarding data in cache is invalidating OCF metadata.
If a cache line which is supposed to be discarded is dirty, invalidating
it will require flushing metadata. Unfortunately, OCF allocates flushing
requests with the exactly the same flags as the original IO (in this case
discard flag is set) so the page on the disk is discarded instead of being
flushed. In case of power failure occurring before the metadata is flushed
to the disk, the data may be corrupted even if recovery will succeed.

Disabling propagation of original I/O flags for discard requests solves
this problem.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-03-16 13:44:44 +01:00
..
cas_cache Don't propagate bio flags to OCF for discard I/O 2022-03-16 13:44:44 +01:00
cas_disk Fix license 2021-10-28 12:46:42 +02:00
include Redesign failover standby management 2022-01-05 16:17:52 +01:00
config.mk Fix license 2021-10-28 12:46:42 +02:00
extra.mk Fix license 2021-10-28 12:46:42 +02:00
Makefile Fix license 2021-10-28 12:46:42 +02:00