]> git.neil.brown.name Git - LaFS.git/commitdiff
Ensure that umount gets woken when a checkpoint completes.
authorNeilBrown <neilb@suse.de>
Mon, 21 Jun 2010 00:33:44 +0000 (10:33 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 21 Jun 2010 00:33:44 +0000 (10:33 +1000)
We really need to call wake_up when ->checkpointing becomes 0.

Signed-off-by: NeilBrown <neilb@suse.de>
cluster.c

index a6a10ba733fa05d833b653f51d56aa98d5603eb8..b83e8fea3b90448717aab7c534540c627560f07d 100644 (file)
--- a/cluster.c
+++ b/cluster.c
@@ -1116,6 +1116,8 @@ static void cluster_flush(struct fs *fs, int cnum)
                                fs->checkpointing &= ~CH_CheckpointStart;
                        }
                        spin_unlock(&fs->lock);
+                       if (!fs->checkpointing)
+                               wake_up(&fs->phase_wait);
                } else
                        wc->chead->flags = 0;
        }