summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2007-05-09 11:33:08 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-09 21:30:48 +0200
commitba8b45cea5f632540d561d37d94c71c07f6af1aa (patch)
tree03604401cd4162a16d1888b71e7d65c8cc14ec31 /mm
parentdm raid1: switch rh_in_sync to blocking in do_reads (diff)
downloadlinux-ba8b45cea5f632540d561d37d94c71c07f6af1aa.tar.xz
linux-ba8b45cea5f632540d561d37d94c71c07f6af1aa.zip
dm log: fix resume failed log device
This patch removes the possibility of having uninitialized log state if the log device has failed. When a mirror resumes operation, it calls 'resume' on the logging module. If disk based logging is being used, the log device is read to fill in the log state. If the log device has failed, we cannot simply return, because this would leave the in-memory log state uninitialized. Instead, we assume all regions are out-of-sync and reset the log state. Failure to do this could result in the logging code reporting a region as in-sync, even though it isn't; which could result in a corrupted mirror. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions