diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 7239079203ec..5e0b333793d5 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -669,6 +669,11 @@ static int make_request(request_queue_t *q, struct bio * bio) | |||
669 | int i; | 669 | int i; |
670 | int chunk_sects = conf->chunk_mask + 1; | 670 | int chunk_sects = conf->chunk_mask + 1; |
671 | 671 | ||
672 | if (unlikely(bio_barrier(bio))) { | ||
673 | bio_endio(bio, bio->bi_size, -EOPNOTSUPP); | ||
674 | return 0; | ||
675 | } | ||
676 | |||
672 | /* If this request crosses a chunk boundary, we need to | 677 | /* If this request crosses a chunk boundary, we need to |
673 | * split it. This will only happen for 1 PAGE (or less) requests. | 678 | * split it. This will only happen for 1 PAGE (or less) requests. |
674 | */ | 679 | */ |