aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r--drivers/md/linear.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c
index 8d740013d74d..4991ba543368 100644
--- a/drivers/md/linear.c
+++ b/drivers/md/linear.c
@@ -238,6 +238,11 @@ static int linear_make_request (request_queue_t *q, struct bio *bio)
238 dev_info_t *tmp_dev; 238 dev_info_t *tmp_dev;
239 sector_t block; 239 sector_t block;
240 240
241 if (unlikely(bio_barrier(bio))) {
242 bio_endio(bio, bio->bi_size, -EOPNOTSUPP);
243 return 0;
244 }
245
241 if (bio_data_dir(bio)==WRITE) { 246 if (bio_data_dir(bio)==WRITE) {
242 disk_stat_inc(mddev->gendisk, writes); 247 disk_stat_inc(mddev->gendisk, writes);
243 disk_stat_add(mddev->gendisk, write_sectors, bio_sectors(bio)); 248 disk_stat_add(mddev->gendisk, write_sectors, bio_sectors(bio));