|
@@ -1170,6 +1170,11 @@ static int __make_request(struct request_queue *q, struct bio *bio)
|
|
const int unplug = bio_unplug(bio);
|
|
const int unplug = bio_unplug(bio);
|
|
int rw_flags;
|
|
int rw_flags;
|
|
|
|
|
|
|
|
+ if (bio_barrier(bio) && bio_has_data(bio) &&
|
|
|
|
+ (q->next_ordered == QUEUE_ORDERED_NONE)) {
|
|
|
|
+ bio_endio(bio, -EOPNOTSUPP);
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
/*
|
|
/*
|
|
* low level driver can indicate that it wants pages above a
|
|
* low level driver can indicate that it wants pages above a
|
|
* certain limit bounced to low memory (ie for highmem, or even
|
|
* certain limit bounced to low memory (ie for highmem, or even
|
|
@@ -1470,11 +1475,6 @@ static inline void __generic_make_request(struct bio *bio)
|
|
err = -EOPNOTSUPP;
|
|
err = -EOPNOTSUPP;
|
|
goto end_io;
|
|
goto end_io;
|
|
}
|
|
}
|
|
- if (bio_barrier(bio) && bio_has_data(bio) &&
|
|
|
|
- (q->next_ordered == QUEUE_ORDERED_NONE)) {
|
|
|
|
- err = -EOPNOTSUPP;
|
|
|
|
- goto end_io;
|
|
|
|
- }
|
|
|
|
|
|
|
|
ret = q->make_request_fn(q, bio);
|
|
ret = q->make_request_fn(q, bio);
|
|
} while (ret);
|
|
} while (ret);
|