Commit 63fb0aa4 authored by Jens Axboe's avatar Jens Axboe Committed by Dave Jones

[PATCH] Fix bio RW_AHEAD test

This patch fixes the BIO_RW_AHEAD being tested at the wrong end
in the bio layer.
parent 7ec6fb01
...@@ -1833,7 +1833,7 @@ static int __make_request(request_queue_t *q, struct bio *bio) ...@@ -1833,7 +1833,7 @@ static int __make_request(request_queue_t *q, struct bio *bio)
barrier = test_bit(BIO_RW_BARRIER, &bio->bi_rw); barrier = test_bit(BIO_RW_BARRIER, &bio->bi_rw);
ra = bio_flagged(bio, BIO_RW_AHEAD); ra = bio->bi_rw & (1 << BIO_RW_AHEAD);
again: again:
insert_here = NULL; insert_here = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment