diff options
author | Chen, Kenneth W <kenneth.w.chen@intel.com> | 2007-01-22 20:40:43 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-01-23 07:52:06 -0800 |
commit | cda9205da24aeaa8fb086b0fb85cdf39571ecc3f (patch) | |
tree | c302c3d0b0558d3fc5ac0b5750e4f8150517ece5 /lib/div64.c | |
parent | 15c945c3d0913d73a7d57d7a0a3c4e2902598cc6 (diff) | |
download | linux-cda9205da24aeaa8fb086b0fb85cdf39571ecc3f.tar.gz linux-cda9205da24aeaa8fb086b0fb85cdf39571ecc3f.tar.bz2 linux-cda9205da24aeaa8fb086b0fb85cdf39571ecc3f.zip |
[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 <kenneth.w.chen@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/div64.c')
0 files changed, 0 insertions, 0 deletions