dm-raid1.c (fd7c092e711ebab55b2688d3859d95dfd0301f73) dm-raid1.c (55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0)
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"

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

1067 }
1068
1069 ti->private = ms;
1070
1071 r = dm_set_target_max_io_len(ti, dm_rh_get_region_size(ms->rh));
1072 if (r)
1073 goto err_free_context;
1074
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"

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

1067 }
1068
1069 ti->private = ms;
1070
1071 r = dm_set_target_max_io_len(ti, dm_rh_get_region_size(ms->rh));
1072 if (r)
1073 goto err_free_context;
1074
1075 ti->num_flush_requests = 1;
1076 ti->num_discard_requests = 1;
1075 ti->num_flush_bios = 1;
1076 ti->num_discard_bios = 1;
1077 ti->per_bio_data_size = sizeof(struct dm_raid1_bio_record);
1078 ti->discard_zeroes_data_unsupported = true;
1079
1080 ms->kmirrord_wq = alloc_workqueue("kmirrord",
1081 WQ_NON_REENTRANT | WQ_MEM_RECLAIM, 0);
1082 if (!ms->kmirrord_wq) {
1083 DMERR("couldn't start kmirrord");
1084 r = -ENOMEM;

--- 360 unchanged lines hidden ---
1077 ti->per_bio_data_size = sizeof(struct dm_raid1_bio_record);
1078 ti->discard_zeroes_data_unsupported = true;
1079
1080 ms->kmirrord_wq = alloc_workqueue("kmirrord",
1081 WQ_NON_REENTRANT | WQ_MEM_RECLAIM, 0);
1082 if (!ms->kmirrord_wq) {
1083 DMERR("couldn't start kmirrord");
1084 r = -ENOMEM;

--- 360 unchanged lines hidden ---