]> git.baikalelectronics.ru Git - kernel.git/commit
dm exception store: fix misordered writes
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 21 Oct 2008 16:44:56 +0000 (17:44 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:44:56 +0000 (17:44 +0100)
commitc19df112c2e1be49f8e568d03c2bd98ba3421452
treeed9eda05b30d3606f1ad16e368c313b40c616c3d
parent22dbe2d95fef332171a077c9992588e14aee52ce
dm exception store: fix misordered writes

We must zero the next chunk on disk *before* writing out the current chunk, not
after.  Otherwise if the machine crashes at the wrong time, the "end of metadata"
marker may be missing.

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