diff options
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 43f231a467d5..ed859e08d600 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -1411,6 +1411,11 @@ static int make_request (request_queue_t *q, struct bio * bi) | |||
1411 | sector_t logical_sector, last_sector; | 1411 | sector_t logical_sector, last_sector; |
1412 | struct stripe_head *sh; | 1412 | struct stripe_head *sh; |
1413 | 1413 | ||
1414 | if (unlikely(bio_barrier(bi))) { | ||
1415 | bio_endio(bi, bi->bi_size, -EOPNOTSUPP); | ||
1416 | return 0; | ||
1417 | } | ||
1418 | |||
1414 | md_write_start(mddev, bi); | 1419 | md_write_start(mddev, bi); |
1415 | 1420 | ||
1416 | if (bio_data_dir(bi)==WRITE) { | 1421 | if (bio_data_dir(bi)==WRITE) { |