Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] blktrace: only add a bounce trace when we really bounce

Currently we issue a bounce trace when __blk_queue_bounce() is called,
but that merely means that the device has a lower dma mask than the
higher pages in the system. The bio itself may still be lower pages. So
move the bounce trace into __blk_queue_bounce(), when we know there will
actually be page bouncing.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jens Axboe and committed by
Linus Torvalds
c43a5082 d39c9400

+2 -2
+2 -2
mm/bounce.c
··· 237 237 if (!bio) 238 238 return; 239 239 240 + blk_add_trace_bio(q, *bio_orig, BLK_TA_BOUNCE); 241 + 240 242 /* 241 243 * at least one page was bounced, fill in possible non-highmem 242 244 * pages ··· 292 290 BUG_ON(!isa_page_pool); 293 291 pool = isa_page_pool; 294 292 } 295 - 296 - blk_add_trace_bio(q, *bio_orig, BLK_TA_BOUNCE); 297 293 298 294 /* 299 295 * slow path