diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-01-27 22:44:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-02-09 04:50:58 -0800 |
commit | cb723ba5d03bf719dbc7409b4d67572d4472ef8b (patch) | |
tree | fab216f0f0d8c04bf2db32e9be6f6368d157d9f7 /arch | |
parent | e52299d0b100ab8d92fe6e980b4d7ee24dd1398c (diff) |
block: fix bio_add_page for non trivial merge_bvec_fn case
commit 1d6165851cd8e3f919d446cd6da35dee44e8837e upstream.
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.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions