diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 9e2e86fb78b8..ae75c047f45d 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1451,6 +1451,11 @@ static inline void __generic_make_request(struct bio *bio) | |||
1451 | err = -EOPNOTSUPP; | 1451 | err = -EOPNOTSUPP; |
1452 | goto end_io; | 1452 | goto end_io; |
1453 | } | 1453 | } |
1454 | if (bio_barrier(bio) && bio_has_data(bio) && | ||
1455 | (q->next_ordered == QUEUE_ORDERED_NONE)) { | ||
1456 | err = -EOPNOTSUPP; | ||
1457 | goto end_io; | ||
1458 | } | ||
1454 | 1459 | ||
1455 | ret = q->make_request_fn(q, bio); | 1460 | ret = q->make_request_fn(q, bio); |
1456 | } while (ret); | 1461 | } while (ret); |