]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] blktrace: only add a bounce trace when we really bounce
authorJens Axboe <jens.axboe@oracle.com>
Fri, 12 Jan 2007 11:20:26 +0000 (12:20 +0100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 12 Jan 2007 18:46:49 +0000 (10:46 -0800)
commit2769113c87da0922300c3d6406204820b3b7a206
tree1a01acbf9d606c392f85449fe6d6af06154a9346
parent7c46e53b33b35caf80d1c793cf247d876c61833c
[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>
mm/bounce.c