aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid0.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r--drivers/md/raid0.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index 2120710172c5..f6757259ce7f 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -404,6 +404,11 @@ static int raid0_make_request (request_queue_t *q, struct bio *bio)
404 unsigned long chunk; 404 unsigned long chunk;
405 sector_t block, rsect; 405 sector_t block, rsect;
406 406
407 if (unlikely(bio_barrier(bio))) {
408 bio_endio(bio, bio->bi_size, -EOPNOTSUPP);
409 return 0;
410 }
411
407 if (bio_data_dir(bio)==WRITE) { 412 if (bio_data_dir(bio)==WRITE) {
408 disk_stat_inc(mddev->gendisk, writes); 413 disk_stat_inc(mddev->gendisk, writes);
409 disk_stat_add(mddev->gendisk, write_sectors, bio_sectors(bio)); 414 disk_stat_add(mddev->gendisk, write_sectors, bio_sectors(bio));