]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/md/dm-raid.c
dm ioctl: prevent empty message
[mirror_ubuntu-artful-kernel.git] / drivers / md / dm-raid.c
CommitLineData
9d09e663
N
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>
9
10#include "md.h"
11#include "raid5.h"
12#include "dm.h"
13#include "bitmap.h"
14
15#define DM_MSG_PREFIX "raid"
16
17/*
18 * If the MD doesn't support MD_SYNC_STATE_FORCED yet, then
19 * make it so the flag doesn't set anything.
20 */
21#ifndef MD_SYNC_STATE_FORCED
22#define MD_SYNC_STATE_FORCED 0
23#endif
24
25struct raid_dev {
26 /*
27 * Two DM devices, one to hold metadata and one to hold the
28 * actual data/parity. The reason for this is to not confuse
29 * ti->len and give more flexibility in altering size and
30 * characteristics.
31 *
32 * While it is possible for this device to be associated
33 * with a different physical device than the data_dev, it
34 * is intended for it to be the same.
35 * |--------- Physical Device ---------|
36 * |- meta_dev -|------ data_dev ------|
37 */
38 struct dm_dev *meta_dev;
39 struct dm_dev *data_dev;
40 struct mdk_rdev_s rdev;
41};
42
43/*
44 * Flags for rs->print_flags field.
45 */
13c87583
JB
46#define DMPF_SYNC 0x1
47#define DMPF_NOSYNC 0x2
48#define DMPF_REBUILD 0x4
49#define DMPF_DAEMON_SLEEP 0x8
50#define DMPF_MIN_RECOVERY_RATE 0x10
51#define DMPF_MAX_RECOVERY_RATE 0x20
52#define DMPF_MAX_WRITE_BEHIND 0x40
53#define DMPF_STRIPE_CACHE 0x80
9d09e663
N
54
55struct raid_set {
56 struct dm_target *ti;
57
58 uint64_t print_flags;
59
60 struct mddev_s md;
61 struct raid_type *raid_type;
62 struct dm_target_callbacks callbacks;
63
64 struct raid_dev dev[0];
65};
66
67/* Supported raid types and properties. */
68static struct raid_type {
69 const char *name; /* RAID algorithm. */
70 const char *descr; /* Descriptor text for logging. */
71 const unsigned parity_devs; /* # of parity devices. */
72 const unsigned minimal_devs; /* minimal # of devices in set. */
73 const unsigned level; /* RAID level. */
74 const unsigned algorithm; /* RAID algorithm. */
75} raid_types[] = {
76 {"raid4", "RAID4 (dedicated parity disk)", 1, 2, 5, ALGORITHM_PARITY_0},
77 {"raid5_la", "RAID5 (left asymmetric)", 1, 2, 5, ALGORITHM_LEFT_ASYMMETRIC},
78 {"raid5_ra", "RAID5 (right asymmetric)", 1, 2, 5, ALGORITHM_RIGHT_ASYMMETRIC},
79 {"raid5_ls", "RAID5 (left symmetric)", 1, 2, 5, ALGORITHM_LEFT_SYMMETRIC},
80 {"raid5_rs", "RAID5 (right symmetric)", 1, 2, 5, ALGORITHM_RIGHT_SYMMETRIC},
81 {"raid6_zr", "RAID6 (zero restart)", 2, 4, 6, ALGORITHM_ROTATING_ZERO_RESTART},
82 {"raid6_nr", "RAID6 (N restart)", 2, 4, 6, ALGORITHM_ROTATING_N_RESTART},
83 {"raid6_nc", "RAID6 (N continue)", 2, 4, 6, ALGORITHM_ROTATING_N_CONTINUE}
84};
85
86static struct raid_type *get_raid_type(char *name)
87{
88 int i;
89
90 for (i = 0; i < ARRAY_SIZE(raid_types); i++)
91 if (!strcmp(raid_types[i].name, name))
92 return &raid_types[i];
93
94 return NULL;
95}
96
97static struct raid_set *context_alloc(struct dm_target *ti, struct raid_type *raid_type, unsigned raid_devs)
98{
99 unsigned i;
100 struct raid_set *rs;
101 sector_t sectors_per_dev;
102
103 if (raid_devs <= raid_type->parity_devs) {
104 ti->error = "Insufficient number of devices";
105 return ERR_PTR(-EINVAL);
106 }
107
108 sectors_per_dev = ti->len;
109 if (sector_div(sectors_per_dev, (raid_devs - raid_type->parity_devs))) {
110 ti->error = "Target length not divisible by number of data devices";
111 return ERR_PTR(-EINVAL);
112 }
113
114 rs = kzalloc(sizeof(*rs) + raid_devs * sizeof(rs->dev[0]), GFP_KERNEL);
115 if (!rs) {
116 ti->error = "Cannot allocate raid context";
117 return ERR_PTR(-ENOMEM);
118 }
119
120 mddev_init(&rs->md);
121
122 rs->ti = ti;
123 rs->raid_type = raid_type;
124 rs->md.raid_disks = raid_devs;
125 rs->md.level = raid_type->level;
126 rs->md.new_level = rs->md.level;
127 rs->md.dev_sectors = sectors_per_dev;
128 rs->md.layout = raid_type->algorithm;
129 rs->md.new_layout = rs->md.layout;
130 rs->md.delta_disks = 0;
131 rs->md.recovery_cp = 0;
132
133 for (i = 0; i < raid_devs; i++)
134 md_rdev_init(&rs->dev[i].rdev);
135
136 /*
137 * Remaining items to be initialized by further RAID params:
138 * rs->md.persistent
139 * rs->md.external
140 * rs->md.chunk_sectors
141 * rs->md.new_chunk_sectors
142 */
143
144 return rs;
145}
146
147static void context_free(struct raid_set *rs)
148{
149 int i;
150
151 for (i = 0; i < rs->md.raid_disks; i++)
152 if (rs->dev[i].data_dev)
153 dm_put_device(rs->ti, rs->dev[i].data_dev);
154
155 kfree(rs);
156}
157
158/*
159 * For every device we have two words
160 * <meta_dev>: meta device name or '-' if missing
161 * <data_dev>: data device name or '-' if missing
162 *
163 * This code parses those words.
164 */
165static int dev_parms(struct raid_set *rs, char **argv)
166{
167 int i;
168 int rebuild = 0;
169 int metadata_available = 0;
170 int ret = 0;
171
172 for (i = 0; i < rs->md.raid_disks; i++, argv += 2) {
173 rs->dev[i].rdev.raid_disk = i;
174
175 rs->dev[i].meta_dev = NULL;
176 rs->dev[i].data_dev = NULL;
177
178 /*
179 * There are no offsets, since there is a separate device
180 * for data and metadata.
181 */
182 rs->dev[i].rdev.data_offset = 0;
183 rs->dev[i].rdev.mddev = &rs->md;
184
185 if (strcmp(argv[0], "-")) {
186 rs->ti->error = "Metadata devices not supported";
187 return -EINVAL;
188 }
189
190 if (!strcmp(argv[1], "-")) {
191 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) &&
192 (!rs->dev[i].rdev.recovery_offset)) {
193 rs->ti->error = "Drive designated for rebuild not specified";
194 return -EINVAL;
195 }
196
197 continue;
198 }
199
200 ret = dm_get_device(rs->ti, argv[1],
201 dm_table_get_mode(rs->ti->table),
202 &rs->dev[i].data_dev);
203 if (ret) {
204 rs->ti->error = "RAID device lookup failure";
205 return ret;
206 }
207
208 rs->dev[i].rdev.bdev = rs->dev[i].data_dev->bdev;
209 list_add(&rs->dev[i].rdev.same_set, &rs->md.disks);
210 if (!test_bit(In_sync, &rs->dev[i].rdev.flags))
211 rebuild++;
212 }
213
214 if (metadata_available) {
215 rs->md.external = 0;
216 rs->md.persistent = 1;
217 rs->md.major_version = 2;
218 } else if (rebuild && !rs->md.recovery_cp) {
219 /*
220 * Without metadata, we will not be able to tell if the array
221 * is in-sync or not - we must assume it is not. Therefore,
222 * it is impossible to rebuild a drive.
223 *
224 * Even if there is metadata, the on-disk information may
225 * indicate that the array is not in-sync and it will then
226 * fail at that time.
227 *
228 * User could specify 'nosync' option if desperate.
229 */
230 DMERR("Unable to rebuild drive while array is not in-sync");
231 rs->ti->error = "RAID device lookup failure";
232 return -EINVAL;
233 }
234
235 return 0;
236}
237
238/*
239 * Possible arguments are...
240 * RAID456:
241 * <chunk_size> [optional_args]
242 *
243 * Optional args:
244 * [[no]sync] Force or prevent recovery of the entire array
245 * [rebuild <idx>] Rebuild the drive indicated by the index
246 * [daemon_sleep <ms>] Time between bitmap daemon work to clear bits
247 * [min_recovery_rate <kB/sec/disk>] Throttle RAID initialization
248 * [max_recovery_rate <kB/sec/disk>] Throttle RAID initialization
249 * [max_write_behind <sectors>] See '-write-behind=' (man mdadm)
250 * [stripe_cache <sectors>] Stripe cache size for higher RAIDs
251 */
252static int parse_raid_params(struct raid_set *rs, char **argv,
253 unsigned num_raid_params)
254{
255 unsigned i, rebuild_cnt = 0;
256 unsigned long value;
257 char *key;
258
259 /*
260 * First, parse the in-order required arguments
261 */
262 if ((strict_strtoul(argv[0], 10, &value) < 0) ||
263 !is_power_of_2(value) || (value < 8)) {
264 rs->ti->error = "Bad chunk size";
265 return -EINVAL;
266 }
267
268 rs->md.new_chunk_sectors = rs->md.chunk_sectors = value;
269 argv++;
270 num_raid_params--;
271
272 /*
273 * Second, parse the unordered optional arguments
274 */
275 for (i = 0; i < rs->md.raid_disks; i++)
276 set_bit(In_sync, &rs->dev[i].rdev.flags);
277
278 for (i = 0; i < num_raid_params; i++) {
13c87583 279 if (!strcasecmp(argv[i], "nosync")) {
9d09e663
N
280 rs->md.recovery_cp = MaxSector;
281 rs->print_flags |= DMPF_NOSYNC;
282 rs->md.flags |= MD_SYNC_STATE_FORCED;
283 continue;
284 }
13c87583 285 if (!strcasecmp(argv[i], "sync")) {
9d09e663
N
286 rs->md.recovery_cp = 0;
287 rs->print_flags |= DMPF_SYNC;
288 rs->md.flags |= MD_SYNC_STATE_FORCED;
289 continue;
290 }
291
292 /* The rest of the optional arguments come in key/value pairs */
293 if ((i + 1) >= num_raid_params) {
294 rs->ti->error = "Wrong number of raid parameters given";
295 return -EINVAL;
296 }
297
298 key = argv[i++];
299 if (strict_strtoul(argv[i], 10, &value) < 0) {
300 rs->ti->error = "Bad numerical argument given in raid params";
301 return -EINVAL;
302 }
303
13c87583 304 if (!strcasecmp(key, "rebuild")) {
9d09e663
N
305 if (++rebuild_cnt > rs->raid_type->parity_devs) {
306 rs->ti->error = "Too many rebuild drives given";
307 return -EINVAL;
308 }
309 if (value > rs->md.raid_disks) {
310 rs->ti->error = "Invalid rebuild index given";
311 return -EINVAL;
312 }
313 clear_bit(In_sync, &rs->dev[value].rdev.flags);
314 rs->dev[value].rdev.recovery_offset = 0;
13c87583
JB
315 rs->print_flags |= DMPF_REBUILD;
316 } else if (!strcasecmp(key, "max_write_behind")) {
9d09e663
N
317 rs->print_flags |= DMPF_MAX_WRITE_BEHIND;
318
319 /*
320 * In device-mapper, we specify things in sectors, but
321 * MD records this value in kB
322 */
323 value /= 2;
324 if (value > COUNTER_MAX) {
325 rs->ti->error = "Max write-behind limit out of range";
326 return -EINVAL;
327 }
328 rs->md.bitmap_info.max_write_behind = value;
13c87583 329 } else if (!strcasecmp(key, "daemon_sleep")) {
9d09e663
N
330 rs->print_flags |= DMPF_DAEMON_SLEEP;
331 if (!value || (value > MAX_SCHEDULE_TIMEOUT)) {
332 rs->ti->error = "daemon sleep period out of range";
333 return -EINVAL;
334 }
335 rs->md.bitmap_info.daemon_sleep = value;
13c87583 336 } else if (!strcasecmp(key, "stripe_cache")) {
9d09e663
N
337 rs->print_flags |= DMPF_STRIPE_CACHE;
338
339 /*
340 * In device-mapper, we specify things in sectors, but
341 * MD records this value in kB
342 */
343 value /= 2;
344
345 if (rs->raid_type->level < 5) {
346 rs->ti->error = "Inappropriate argument: stripe_cache";
347 return -EINVAL;
348 }
349 if (raid5_set_cache_size(&rs->md, (int)value)) {
350 rs->ti->error = "Bad stripe_cache size";
351 return -EINVAL;
352 }
13c87583 353 } else if (!strcasecmp(key, "min_recovery_rate")) {
9d09e663
N
354 rs->print_flags |= DMPF_MIN_RECOVERY_RATE;
355 if (value > INT_MAX) {
356 rs->ti->error = "min_recovery_rate out of range";
357 return -EINVAL;
358 }
359 rs->md.sync_speed_min = (int)value;
13c87583 360 } else if (!strcasecmp(key, "max_recovery_rate")) {
9d09e663
N
361 rs->print_flags |= DMPF_MAX_RECOVERY_RATE;
362 if (value > INT_MAX) {
363 rs->ti->error = "max_recovery_rate out of range";
364 return -EINVAL;
365 }
366 rs->md.sync_speed_max = (int)value;
367 } else {
368 DMERR("Unable to parse RAID parameter: %s", key);
369 rs->ti->error = "Unable to parse RAID parameters";
370 return -EINVAL;
371 }
372 }
373
374 /* Assume there are no metadata devices until the drives are parsed */
375 rs->md.persistent = 0;
376 rs->md.external = 1;
377
378 return 0;
379}
380
381static void do_table_event(struct work_struct *ws)
382{
383 struct raid_set *rs = container_of(ws, struct raid_set, md.event_work);
384
385 dm_table_event(rs->ti->table);
386}
387
388static int raid_is_congested(struct dm_target_callbacks *cb, int bits)
389{
390 struct raid_set *rs = container_of(cb, struct raid_set, callbacks);
391
392 return md_raid5_congested(&rs->md, bits);
393}
394
9d09e663
N
395/*
396 * Construct a RAID4/5/6 mapping:
397 * Args:
398 * <raid_type> <#raid_params> <raid_params> \
399 * <#raid_devs> { <meta_dev1> <dev1> .. <meta_devN> <devN> }
400 *
401 * ** metadata devices are not supported yet, use '-' instead **
402 *
403 * <raid_params> varies by <raid_type>. See 'parse_raid_params' for
404 * details on possible <raid_params>.
405 */
406static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
407{
408 int ret;
409 struct raid_type *rt;
410 unsigned long num_raid_params, num_raid_devs;
411 struct raid_set *rs = NULL;
412
413 /* Must have at least <raid_type> <#raid_params> */
414 if (argc < 2) {
415 ti->error = "Too few arguments";
416 return -EINVAL;
417 }
418
419 /* raid type */
420 rt = get_raid_type(argv[0]);
421 if (!rt) {
422 ti->error = "Unrecognised raid_type";
423 return -EINVAL;
424 }
425 argc--;
426 argv++;
427
428 /* number of RAID parameters */
429 if (strict_strtoul(argv[0], 10, &num_raid_params) < 0) {
430 ti->error = "Cannot understand number of RAID parameters";
431 return -EINVAL;
432 }
433 argc--;
434 argv++;
435
436 /* Skip over RAID params for now and find out # of devices */
437 if (num_raid_params + 1 > argc) {
438 ti->error = "Arguments do not agree with counts given";
439 return -EINVAL;
440 }
441
442 if ((strict_strtoul(argv[num_raid_params], 10, &num_raid_devs) < 0) ||
443 (num_raid_devs >= INT_MAX)) {
444 ti->error = "Cannot understand number of raid devices";
445 return -EINVAL;
446 }
447
448 rs = context_alloc(ti, rt, (unsigned)num_raid_devs);
449 if (IS_ERR(rs))
450 return PTR_ERR(rs);
451
452 ret = parse_raid_params(rs, argv, (unsigned)num_raid_params);
453 if (ret)
454 goto bad;
455
456 ret = -EINVAL;
457
458 argc -= num_raid_params + 1; /* +1: we already have num_raid_devs */
459 argv += num_raid_params + 1;
460
461 if (argc != (num_raid_devs * 2)) {
462 ti->error = "Supplied RAID devices does not match the count given";
463 goto bad;
464 }
465
466 ret = dev_parms(rs, argv);
467 if (ret)
468 goto bad;
469
470 INIT_WORK(&rs->md.event_work, do_table_event);
471 ti->split_io = rs->md.chunk_sectors;
472 ti->private = rs;
473
474 mutex_lock(&rs->md.reconfig_mutex);
475 ret = md_run(&rs->md);
476 rs->md.in_sync = 0; /* Assume already marked dirty */
477 mutex_unlock(&rs->md.reconfig_mutex);
478
479 if (ret) {
480 ti->error = "Fail to run raid array";
481 goto bad;
482 }
483
484 rs->callbacks.congested_fn = raid_is_congested;
9d09e663
N
485 dm_table_add_target_callbacks(ti->table, &rs->callbacks);
486
487 return 0;
488
489bad:
490 context_free(rs);
491
492 return ret;
493}
494
495static void raid_dtr(struct dm_target *ti)
496{
497 struct raid_set *rs = ti->private;
498
499 list_del_init(&rs->callbacks.list);
500 md_stop(&rs->md);
501 context_free(rs);
502}
503
504static int raid_map(struct dm_target *ti, struct bio *bio, union map_info *map_context)
505{
506 struct raid_set *rs = ti->private;
507 mddev_t *mddev = &rs->md;
508
509 mddev->pers->make_request(mddev, bio);
510
511 return DM_MAPIO_SUBMITTED;
512}
513
514static int raid_status(struct dm_target *ti, status_type_t type,
515 char *result, unsigned maxlen)
516{
517 struct raid_set *rs = ti->private;
518 unsigned raid_param_cnt = 1; /* at least 1 for chunksize */
519 unsigned sz = 0;
520 int i;
521 sector_t sync;
522
523 switch (type) {
524 case STATUSTYPE_INFO:
525 DMEMIT("%s %d ", rs->raid_type->name, rs->md.raid_disks);
526
527 for (i = 0; i < rs->md.raid_disks; i++) {
528 if (test_bit(Faulty, &rs->dev[i].rdev.flags))
529 DMEMIT("D");
530 else if (test_bit(In_sync, &rs->dev[i].rdev.flags))
531 DMEMIT("A");
532 else
533 DMEMIT("a");
534 }
535
536 if (test_bit(MD_RECOVERY_RUNNING, &rs->md.recovery))
537 sync = rs->md.curr_resync_completed;
538 else
539 sync = rs->md.recovery_cp;
540
541 if (sync > rs->md.resync_max_sectors)
542 sync = rs->md.resync_max_sectors;
543
544 DMEMIT(" %llu/%llu",
545 (unsigned long long) sync,
546 (unsigned long long) rs->md.resync_max_sectors);
547
548 break;
549 case STATUSTYPE_TABLE:
550 /* The string you would use to construct this array */
551 for (i = 0; i < rs->md.raid_disks; i++)
13c87583
JB
552 if ((rs->print_flags & DMPF_REBUILD) &&
553 rs->dev[i].data_dev &&
9d09e663 554 !test_bit(In_sync, &rs->dev[i].rdev.flags))
13c87583 555 raid_param_cnt += 2; /* for rebuilds */
9d09e663 556
13c87583 557 raid_param_cnt += (hweight64(rs->print_flags & ~DMPF_REBUILD) * 2);
9d09e663
N
558 if (rs->print_flags & (DMPF_SYNC | DMPF_NOSYNC))
559 raid_param_cnt--;
560
561 DMEMIT("%s %u %u", rs->raid_type->name,
562 raid_param_cnt, rs->md.chunk_sectors);
563
564 if ((rs->print_flags & DMPF_SYNC) &&
565 (rs->md.recovery_cp == MaxSector))
566 DMEMIT(" sync");
567 if (rs->print_flags & DMPF_NOSYNC)
568 DMEMIT(" nosync");
569
570 for (i = 0; i < rs->md.raid_disks; i++)
13c87583
JB
571 if ((rs->print_flags & DMPF_REBUILD) &&
572 rs->dev[i].data_dev &&
9d09e663
N
573 !test_bit(In_sync, &rs->dev[i].rdev.flags))
574 DMEMIT(" rebuild %u", i);
575
576 if (rs->print_flags & DMPF_DAEMON_SLEEP)
577 DMEMIT(" daemon_sleep %lu",
578 rs->md.bitmap_info.daemon_sleep);
579
580 if (rs->print_flags & DMPF_MIN_RECOVERY_RATE)
581 DMEMIT(" min_recovery_rate %d", rs->md.sync_speed_min);
582
583 if (rs->print_flags & DMPF_MAX_RECOVERY_RATE)
584 DMEMIT(" max_recovery_rate %d", rs->md.sync_speed_max);
585
586 if (rs->print_flags & DMPF_MAX_WRITE_BEHIND)
587 DMEMIT(" max_write_behind %lu",
588 rs->md.bitmap_info.max_write_behind);
589
590 if (rs->print_flags & DMPF_STRIPE_CACHE) {
591 raid5_conf_t *conf = rs->md.private;
592
593 /* convert from kiB to sectors */
594 DMEMIT(" stripe_cache %d",
595 conf ? conf->max_nr_stripes * 2 : 0);
596 }
597
598 DMEMIT(" %d", rs->md.raid_disks);
599 for (i = 0; i < rs->md.raid_disks; i++) {
600 DMEMIT(" -"); /* metadata device */
601
602 if (rs->dev[i].data_dev)
603 DMEMIT(" %s", rs->dev[i].data_dev->name);
604 else
605 DMEMIT(" -");
606 }
607 }
608
609 return 0;
610}
611
612static int raid_iterate_devices(struct dm_target *ti, iterate_devices_callout_fn fn, void *data)
613{
614 struct raid_set *rs = ti->private;
615 unsigned i;
616 int ret = 0;
617
618 for (i = 0; !ret && i < rs->md.raid_disks; i++)
619 if (rs->dev[i].data_dev)
620 ret = fn(ti,
621 rs->dev[i].data_dev,
622 0, /* No offset on data devs */
623 rs->md.dev_sectors,
624 data);
625
626 return ret;
627}
628
629static void raid_io_hints(struct dm_target *ti, struct queue_limits *limits)
630{
631 struct raid_set *rs = ti->private;
632 unsigned chunk_size = rs->md.chunk_sectors << 9;
633 raid5_conf_t *conf = rs->md.private;
634
635 blk_limits_io_min(limits, chunk_size);
636 blk_limits_io_opt(limits, chunk_size * (conf->raid_disks - conf->max_degraded));
637}
638
639static void raid_presuspend(struct dm_target *ti)
640{
641 struct raid_set *rs = ti->private;
642
643 md_stop_writes(&rs->md);
644}
645
646static void raid_postsuspend(struct dm_target *ti)
647{
648 struct raid_set *rs = ti->private;
649
650 mddev_suspend(&rs->md);
651}
652
653static void raid_resume(struct dm_target *ti)
654{
655 struct raid_set *rs = ti->private;
656
657 mddev_resume(&rs->md);
658}
659
660static struct target_type raid_target = {
661 .name = "raid",
662 .version = {1, 0, 0},
663 .module = THIS_MODULE,
664 .ctr = raid_ctr,
665 .dtr = raid_dtr,
666 .map = raid_map,
667 .status = raid_status,
668 .iterate_devices = raid_iterate_devices,
669 .io_hints = raid_io_hints,
670 .presuspend = raid_presuspend,
671 .postsuspend = raid_postsuspend,
672 .resume = raid_resume,
673};
674
675static int __init dm_raid_init(void)
676{
677 return dm_register_target(&raid_target);
678}
679
680static void __exit dm_raid_exit(void)
681{
682 dm_unregister_target(&raid_target);
683}
684
685module_init(dm_raid_init);
686module_exit(dm_raid_exit);
687
688MODULE_DESCRIPTION(DM_NAME " raid4/5/6 target");
689MODULE_ALIAS("dm-raid4");
690MODULE_ALIAS("dm-raid5");
691MODULE_ALIAS("dm-raid6");
692MODULE_AUTHOR("Neil Brown <dm-devel@redhat.com>");
693MODULE_LICENSE("GPL");