dm-raid.c (3a0f9aaee02857609d79b20c809c02a8b7c39d06) | dm-raid.c (7de3ee57da4b717050e79c9313a9bf66ccc72519) |
---|---|
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> --- 1204 unchanged lines hidden (view full) --- 1213{ 1214 struct raid_set *rs = ti->private; 1215 1216 list_del_init(&rs->callbacks.list); 1217 md_stop(&rs->md); 1218 context_free(rs); 1219} 1220 | 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> --- 1204 unchanged lines hidden (view full) --- 1213{ 1214 struct raid_set *rs = ti->private; 1215 1216 list_del_init(&rs->callbacks.list); 1217 md_stop(&rs->md); 1218 context_free(rs); 1219} 1220 |
1221static int raid_map(struct dm_target *ti, struct bio *bio, union map_info *map_context) | 1221static int raid_map(struct dm_target *ti, struct bio *bio) |
1222{ 1223 struct raid_set *rs = ti->private; 1224 struct mddev *mddev = &rs->md; 1225 1226 mddev->pers->make_request(mddev, bio); 1227 1228 return DM_MAPIO_SUBMITTED; 1229} --- 197 unchanged lines hidden (view full) --- 1427 } 1428 1429 clear_bit(MD_RECOVERY_FROZEN, &rs->md.recovery); 1430 mddev_resume(&rs->md); 1431} 1432 1433static struct target_type raid_target = { 1434 .name = "raid", | 1222{ 1223 struct raid_set *rs = ti->private; 1224 struct mddev *mddev = &rs->md; 1225 1226 mddev->pers->make_request(mddev, bio); 1227 1228 return DM_MAPIO_SUBMITTED; 1229} --- 197 unchanged lines hidden (view full) --- 1427 } 1428 1429 clear_bit(MD_RECOVERY_FROZEN, &rs->md.recovery); 1430 mddev_resume(&rs->md); 1431} 1432 1433static struct target_type raid_target = { 1434 .name = "raid", |
1435 .version = {1, 3, 1}, | 1435 .version = {1, 4, 0}, |
1436 .module = THIS_MODULE, 1437 .ctr = raid_ctr, 1438 .dtr = raid_dtr, 1439 .map = raid_map, 1440 .status = raid_status, 1441 .iterate_devices = raid_iterate_devices, 1442 .io_hints = raid_io_hints, 1443 .presuspend = raid_presuspend, --- 25 unchanged lines hidden --- | 1436 .module = THIS_MODULE, 1437 .ctr = raid_ctr, 1438 .dtr = raid_dtr, 1439 .map = raid_map, 1440 .status = raid_status, 1441 .iterate_devices = raid_iterate_devices, 1442 .io_hints = raid_io_hints, 1443 .presuspend = raid_presuspend, --- 25 unchanged lines hidden --- |