From: Chen, Kenneth W Date: Tue, 23 Jan 2007 04:40:43 +0000 (-0800) Subject: [PATCH] fix blk_direct_IO bio preparation X-Git-Tag: v2.6.20-rc6~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cda9205da24aeaa8fb086b0fb85cdf39571ecc3f;p=pandora-kernel.git [PATCH] fix blk_direct_IO bio preparation For large size DIO that needs multiple bio, one full page worth of data was lost at the boundary of bio's maximum sector or segment limits. After a bio is full and got submitted. The outer while (nbytes) { ... } loop will allocate a new bio and just march on to index into next page. It just forgets about the page that bio_add_page() rejected when previous bio is full. Fix it by put the rejected page back to pvec so we pick it up again for the next bio. Signed-off-by: Ken Chen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed