diff options
author | Ming Lei <tom.leiming@gmail.com> | 2014-10-22 02:30:30 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-10-22 03:00:32 +0200 |
commit | 76d8137a31139f0d69ecc4177497ad6b8d4f016c (patch) | |
tree | 194c64bc760ff1aff6c21f29b9519725b1c2fc1a /net/sctp | |
parent | fs: clarify rate limit suppressed buffer I/O errors (diff) | |
download | linux-76d8137a31139f0d69ecc4177497ad6b8d4f016c.tar.xz linux-76d8137a31139f0d69ecc4177497ad6b8d4f016c.zip |
blk-merge: recaculate segment if it isn't less than max segments
The problem is introduced by commit 764f612c6c3c231b(blk-merge:
don't compute bi_phys_segments from bi_vcnt for cloned bio),
and merge is needed if number of current segment isn't less than
max segments.
Strictly speaking, bio->bi_vcnt shouldn't be used here since
it may not be accurate in cases of both cloned bio or bio cloned
from, but bio_segments() is a bit expensive, and bi_vcnt is still
the biggest number, so the approach should work.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions