dm-raid1.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) dm-raid1.c (670368a8ddc5df56437444c33b8089afc547c30a)
1/*
2 * Copyright (C) 2003 Sistina Software Limited.
3 * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-bio-record.h"

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

1075 if (r)
1076 goto err_free_context;
1077
1078 ti->num_flush_bios = 1;
1079 ti->num_discard_bios = 1;
1080 ti->per_bio_data_size = sizeof(struct dm_raid1_bio_record);
1081 ti->discard_zeroes_data_unsupported = true;
1082
1/*
2 * Copyright (C) 2003 Sistina Software Limited.
3 * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-bio-record.h"

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

1075 if (r)
1076 goto err_free_context;
1077
1078 ti->num_flush_bios = 1;
1079 ti->num_discard_bios = 1;
1080 ti->per_bio_data_size = sizeof(struct dm_raid1_bio_record);
1081 ti->discard_zeroes_data_unsupported = true;
1082
1083 ms->kmirrord_wq = alloc_workqueue("kmirrord",
1084 WQ_NON_REENTRANT | WQ_MEM_RECLAIM, 0);
1083 ms->kmirrord_wq = alloc_workqueue("kmirrord", WQ_MEM_RECLAIM, 0);
1085 if (!ms->kmirrord_wq) {
1086 DMERR("couldn't start kmirrord");
1087 r = -ENOMEM;
1088 goto err_free_context;
1089 }
1090 INIT_WORK(&ms->kmirrord_work, do_mirror);
1091 init_timer(&ms->timer);
1092 ms->timer_pending = 0;

--- 355 unchanged lines hidden ---
1084 if (!ms->kmirrord_wq) {
1085 DMERR("couldn't start kmirrord");
1086 r = -ENOMEM;
1087 goto err_free_context;
1088 }
1089 INIT_WORK(&ms->kmirrord_work, do_mirror);
1090 init_timer(&ms->timer);
1091 ms->timer_pending = 0;

--- 355 unchanged lines hidden ---