diff options
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 717e64a4af9a..ab4a489d8695 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c | |||
@@ -314,6 +314,8 @@ static int raid0_run(mddev_t *mddev) | |||
314 | printk(KERN_ERR "md/raid0: chunk size must be set.\n"); | 314 | printk(KERN_ERR "md/raid0: chunk size must be set.\n"); |
315 | return -EINVAL; | 315 | return -EINVAL; |
316 | } | 316 | } |
317 | if (md_check_no_bitmap(mddev)) | ||
318 | return -EINVAL; | ||
317 | blk_queue_max_sectors(mddev->queue, mddev->chunk_sectors); | 319 | blk_queue_max_sectors(mddev->queue, mddev->chunk_sectors); |
318 | mddev->queue->queue_lock = &mddev->queue->__queue_lock; | 320 | mddev->queue->queue_lock = &mddev->queue->__queue_lock; |
319 | 321 | ||