diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-01-27 20:44:36 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-01-28 15:08:29 +0100 |
commit | 1d6165851cd8e3f919d446cd6da35dee44e8837e (patch) | |
tree | a9d68cfc0e838490d12963aa917ef78a54ae2073 /fs/bio-integrity.c | |
parent | Merge branch 'for-jens' of git://git.drbd.org/linux-2.6-drbd into for-linus (diff) | |
download | linux-1d6165851cd8e3f919d446cd6da35dee44e8837e.tar.xz linux-1d6165851cd8e3f919d446cd6da35dee44e8837e.zip |
block: fix bio_add_page for non trivial merge_bvec_fn case
We have to properly decrease bi_size in order to merge_bvec_fn return
right result. Otherwise this result in false merge rejects for two
absolutely valid bio_vecs. This may cause significant performance
penalty for example fs_block_size == 1k and block device is raid0 with
small chunk_size = 8k. Then it is impossible to merge 7-th fs-block in
to bio which already has 6 fs-blocks.
Cc: <stable@kernel.org>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/bio-integrity.c')
0 files changed, 0 insertions, 0 deletions