diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 8bdc9bfc2887..da5129a24b18 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -19,6 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "dm-bio-list.h" | 21 | #include "dm-bio-list.h" |
22 | #include <linux/delay.h> | ||
22 | #include <linux/raid/raid10.h> | 23 | #include <linux/raid/raid10.h> |
23 | #include <linux/raid/bitmap.h> | 24 | #include <linux/raid/bitmap.h> |
24 | 25 | ||
@@ -2028,8 +2029,9 @@ static int run(mddev_t *mddev) | |||
2028 | int nc, fc, fo; | 2029 | int nc, fc, fo; |
2029 | sector_t stride, size; | 2030 | sector_t stride, size; |
2030 | 2031 | ||
2031 | if (mddev->chunk_size == 0) { | 2032 | if (mddev->chunk_size < PAGE_SIZE) { |
2032 | printk(KERN_ERR "md/raid10: non-zero chunk size required.\n"); | 2033 | printk(KERN_ERR "md/raid10: chunk size must be " |
2034 | "at least PAGE_SIZE(%ld).\n", PAGE_SIZE); | ||
2033 | return -EINVAL; | 2035 | return -EINVAL; |
2034 | } | 2036 | } |
2035 | 2037 | ||