dm-raid.c (fd7c092e711ebab55b2688d3859d95dfd0301f73) dm-raid.c (55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0)
1/*
2 * Copyright (C) 2010-2011 Neil Brown
3 * Copyright (C) 2010-2011 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include <linux/slab.h>

--- 1137 unchanged lines hidden (view full) ---

1146
1147 rs->md.sync_super = super_sync;
1148 ret = analyse_superblocks(ti, rs);
1149 if (ret)
1150 goto bad;
1151
1152 INIT_WORK(&rs->md.event_work, do_table_event);
1153 ti->private = rs;
1/*
2 * Copyright (C) 2010-2011 Neil Brown
3 * Copyright (C) 2010-2011 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include <linux/slab.h>

--- 1137 unchanged lines hidden (view full) ---

1146
1147 rs->md.sync_super = super_sync;
1148 ret = analyse_superblocks(ti, rs);
1149 if (ret)
1150 goto bad;
1151
1152 INIT_WORK(&rs->md.event_work, do_table_event);
1153 ti->private = rs;
1154 ti->num_flush_requests = 1;
1154 ti->num_flush_bios = 1;
1155
1156 mutex_lock(&rs->md.reconfig_mutex);
1157 ret = md_run(&rs->md);
1158 rs->md.in_sync = 0; /* Assume already marked dirty */
1159 mutex_unlock(&rs->md.reconfig_mutex);
1160
1161 if (ret) {
1162 ti->error = "Fail to run raid array";

--- 277 unchanged lines hidden ---
1155
1156 mutex_lock(&rs->md.reconfig_mutex);
1157 ret = md_run(&rs->md);
1158 rs->md.in_sync = 0; /* Assume already marked dirty */
1159 mutex_unlock(&rs->md.reconfig_mutex);
1160
1161 if (ret) {
1162 ti->error = "Fail to run raid array";

--- 277 unchanged lines hidden ---