X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=mm%2Fbounce.c;h=5a7d58fb883bfa1c4917e48d251cd132c8d9baf9;hb=5df644fd609cd0610a77dd13eed9729bd2eefbd5;hp=c9f0a4339a7dafc2ba7295e49ad8fcdda8fa13de;hpb=8d7a8fe2ce2f242953aef46226eaa8a4a1a2c380;p=firefly-linux-kernel-4.4.55.git diff --git a/mm/bounce.c b/mm/bounce.c index c9f0a4339a7d..5a7d58fb883b 100644 --- a/mm/bounce.c +++ b/mm/bounce.c @@ -204,6 +204,8 @@ static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig, struct bio_vec *to, *from; unsigned i; + if (force) + goto bounce; bio_for_each_segment(from, *bio_orig, i) if (page_to_pfn(from->bv_page) > queue_bounce_pfn(q)) goto bounce;