From: FUJITA Tomonori Date: Fri, 4 Jul 2008 07:31:11 +0000 (+0200) Subject: block: blk_rq_map_kern uses the bounce buffers for stack buffers X-Git-Tag: v2.6.27-rc1~1114^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30c00eda73d5db5bd64dd0c370161abd8df5ba4a;p=pandora-kernel.git block: blk_rq_map_kern uses the bounce buffers for stack buffers blk_rq_map_kern is used for kernel internal I/Os. Some callers use this function with stack buffers but DMA to/from the stack buffers leads to memory corruption on a non-coherent platform. This patch make blk_rq_map_kern uses the bounce buffers if a caller passes a stack buffer (on the all platforms for simplicity). Signed-off-by: FUJITA Tomonori Cc: Bartlomiej Zolnierkiewicz Cc: Thomas Bogendoerfer Cc: Tejun Heo Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed