]> git.hungrycats.org Git - linux/commit
[PATCH] fix segment accounting with bounced pages
authorJens Axboe <axboe@suse.de>
Thu, 6 Nov 2003 00:23:58 +0000 (16:23 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 6 Nov 2003 00:23:58 +0000 (16:23 -0800)
commit95450709c1de3152706a6b1df652b9c3952c8a7c
tree382a9a274a767158ae4ffdfe253a7d0c1a15d446
parentf32732f31e442a1facbc5574cb46d30afb39ad10
[PATCH] fix segment accounting with bounced pages

There's a problem with bio segment accounting for pages that reside
above the bounce limit of a queue. When submitted, they may be
considered part of another segment. A condition that changes when the
page gets bounced. This can cause us to send bio's that have too many
segments to a driver.

The best fix is to always consider pages above q->bounce_pfn as seperate
segments. That's the conservative approach and the easy fix.

Problem identified and fixed by Herbert Xu.
drivers/block/ll_rw_blk.c