Commit:     f5353cd7c9cd10cdf9d62a5487f3db77b7b68105
Parent:     26b9f228703f0518a90e7513d6fe7b6abeed5138
Author:     Jonathan Brassow <[EMAIL PROTECTED]>
AuthorDate: Wed May 9 02:33:07 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 9 12:30:48 2007 -0700

    dm raid1: fix to commit pending clear region requests
    With the code as it is, it is possible for oustanding clear region requests
    never to get flushed when a mirror is deactivated or suspended.  This means
    there will always be some resync work required when a mirror is activated,
    even though it may very well be in-sync.
    Always requesting the flush doesn't hurt us.  This is because the log tracks
    whether any changes occurred and, if not, no flush is performed.
    Signed-off-by: Jonathan Brassow <[EMAIL PROTECTED]>
    Signed-off-by: Alasdair G Kergon <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/md/dm-raid1.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index bde9046..85d254e 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -405,8 +405,7 @@ static void rh_update_states(struct region_hash *rh)
                mempool_free(reg, rh->region_pool);
-       if (!list_empty(&recovered))
-               rh->log->type->flush(rh->log);
+       rh->log->type->flush(rh->log);
        list_for_each_entry_safe (reg, next, &clean, list)
                mempool_free(reg, rh->region_pool);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to