dm log: introduce flush_failed variable
commit5adc78d0d231b030405b31759f125f13404fdb64
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:00 +0000 (10 23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:00 +0000 (10 23:52 +0000)
tree8906799cb47e78790335eac122987872ef193dab
parent20a34a8ecc7d03eaa5054f58169ebff12f5f1f8c
dm log: introduce flush_failed variable

Introduce "flush failed" variable.  When a flush before clearing a bit
in the log fails, we don't know anything about which which regions are
in-sync and which not.

So we need to set all regions as not-in-sync and set the variable
"flush_failed" to prevent setting the in-sync bit in the future.

A target reload is the only way to get out of this situation.

The variable will be set in following patches.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log.c