dm-delay.c (fd7c092e711ebab55b2688d3859d95dfd0301f73) dm-delay.c (55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0)
1/*
2 * Copyright (C) 2005-2007 Red Hat GmbH
3 *
4 * A target that delays reads and/or writes and can send
5 * them to different devices.
6 *
7 * This file is released under the GPL.
8 */

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

193
194 setup_timer(&dc->delay_timer, handle_delayed_timer, (unsigned long)dc);
195
196 INIT_WORK(&dc->flush_expired_bios, flush_expired_bios);
197 INIT_LIST_HEAD(&dc->delayed_bios);
198 mutex_init(&dc->timer_lock);
199 atomic_set(&dc->may_delay, 1);
200
1/*
2 * Copyright (C) 2005-2007 Red Hat GmbH
3 *
4 * A target that delays reads and/or writes and can send
5 * them to different devices.
6 *
7 * This file is released under the GPL.
8 */

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

193
194 setup_timer(&dc->delay_timer, handle_delayed_timer, (unsigned long)dc);
195
196 INIT_WORK(&dc->flush_expired_bios, flush_expired_bios);
197 INIT_LIST_HEAD(&dc->delayed_bios);
198 mutex_init(&dc->timer_lock);
199 atomic_set(&dc->may_delay, 1);
200
201 ti->num_flush_requests = 1;
202 ti->num_discard_requests = 1;
201 ti->num_flush_bios = 1;
202 ti->num_discard_bios = 1;
203 ti->private = dc;
204 return 0;
205
206bad_dev_write:
207 if (dc->dev_write)
208 dm_put_device(ti, dc->dev_write);
209bad_dev_read:
210 dm_put_device(ti, dc->dev_read);

--- 184 unchanged lines hidden ---
203 ti->private = dc;
204 return 0;
205
206bad_dev_write:
207 if (dc->dev_write)
208 dm_put_device(ti, dc->dev_write);
209bad_dev_read:
210 dm_put_device(ti, dc->dev_read);

--- 184 unchanged lines hidden ---