]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
dm snapshot: flush disk cache when merging
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Aug 2011 11:32:00 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:00 +0000 (12:32 +0100)
commit762a80d9fc9f690a3a35983f3b4619a220650808
tree807d9cfcd1c2395cd1cf62a95ebd6676ee2a6a4d
parent6140333d3656f62ac7e6a5af87e7fe92cfb8d655
dm snapshot: flush disk cache when merging

This patch makes dm-snapshot flush disk cache when writing metadata for
merging snapshot.

Without cache flushing the disk may reorder metadata write and other
data writes and there is a possibility of data corruption in case of
power fault.

Cc: stable@kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap-persistent.c