]> git.karo-electronics.de Git - karo-tx-linux.git/commit
This patch makes dm-snapshot flush disk cache when writing metadata for
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 25 Jul 2011 00:49:50 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 25 Jul 2011 00:49:50 +0000 (10:49 +1000)
commit6acc6cbd4d81d396b97e19a8400064041f6983cb
treea036ac402a0cdd3fd5e6933a1ec6b2c8cd5f5b18
parent02f8c6aee8df3cdc935e9bdd4f2d020306035dbe
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