]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/dm-table.c
Pull ec into test branch
[linux-2.6-omap-h63xx.git] / drivers / md / dm-table.c
index 4920998efeeb7adf74342ed1c4ff4c1f6c06fd8a..05befa91807a332b87676bef2cc47de92417e1eb 100644 (file)
@@ -1001,6 +1001,11 @@ int dm_table_flush_all(struct dm_table *t)
 {
        struct list_head *d, *devices = dm_table_get_devices(t);
        int ret = 0;
+       unsigned i;
+
+       for (i = 0; i < t->num_targets; i++)
+               if (t->targets[i].type->flush)
+                       t->targets[i].type->flush(&t->targets[i]);
 
        for (d = devices->next; d != devices; d = d->next) {
                struct dm_dev *dd = list_entry(d, struct dm_dev, list);